Exception conditions
As with all CICS commands, FEPI commands may produce exception conditions that you can check using the RESP option, or capture using HANDLE CONDITION.
Most
FEPI
command
errors return INVREQ. The particular error in each case is uniquely
identified by the RESP2 value. All the FEPI exception conditions and
RESP2 values are listed in
FEPI application programming reference
. There are copy books that
contain declarations for the RESP2 values:
- DFHSZAPA for Assembler language
- DFHSZAPO for COBOL
- DFHSZAPP for PL/I
- DFHSZAPC for C.
If there is an error, the command does nothing, and output values are not changed. Note, however, that commands such as FEPI SEND may have transferred data before the condition is recognized.
You can use EDF and CECI to debug FEPI programs. Because FEPI commands can be quite long, you will probably find the NAME field of CECI useful.