TYPE=ERRPROC
indicates that a CICS-supplied error processor routine is to be replaced with the
user-written error processor that immediately follows the macro. This macro is
optional; if used, it must follow the DFHTEPM TYPE=INITIAL macro. One
DFHTEPM TYPE=ERRPROC macro must precede each user-written error
processor source routine.
CODE=errcode
is used to identify the error code assigned to the appropriate error condition.
These codes are listed in Figure 26 on page 474.
DFHTEPM TYPE=FINAL–ending the sample DFHTEP module
The macro to terminate the sample DFHTEP module is:
This is followed by an END DFHTEPNA statement.
DFHTEPM macro examples
1. The following is an example of the minimum number of statements required to
generate a sample DFHTEP module:
DFHTEPM TYPE=INITIAL
DFHTEPM TYPE=FINAL
END DFHTEPNA
This example generates a sample DFHTEP module with CICS-supplied error
processors and all default options. This is equivalent to the CICS-supplied
sample terminal error program.
2. Figure 23 on page 464 is an example of a more tailored sample DFHTEP
module. In this example no 3270 support is generated. All default types of
information except for TACP and TEP actions are to be logged to the TEPQ
transient data destination. The CICS DSECTs are not printed on the sample
DFHTEP assembler-language listing. There are two error processor routines
(codes ‘87’ and ‘9F’ respectively).
DFHTEPM TYPE=FINAL
Chapter 8. Writing a terminal error program 463