HANDLE CONDITION. IBM iSeries
Oglas
Oglas
Exception Conditions
INVREQ
RESP2 values:
200
The command was issued by a DPL server program.
Default action: terminate the task abnormally.
Examples
The following example shows a HANDLE AID command that specifies one label for the PA1 key; and a second label for CLEAR, PA2, PA3, and all the PF keys except PF10. If a PF10 AID is received or ENTER is pressed, control returns to the application program at the instruction immediately following the input command.
EXEC CICS HANDLE AID PA1(LAB1)
HANDLE CONDITION
Handle conditions.
HANDLE CONDITION condition
(
label
)
Description
HANDLE CONDITION is not supported for C programs.
For information about the conditions, see Appendix A, “EXEC interface block,” on page 529.
You use this HANDLE CONDITION to specify the label to which control is to be passed if a condition occurs. You must include the name of the condition and, optionally, a label to which control is to be passed if the condition occurs. You must ensure that the HANDLE CONDITION command is executed before the command that may give rise to the associated condition.
You cannot include more than sixteen conditions in the same command; the conditions must be separated by at least one space. You may specify additional conditions in further HANDLE CONDITION commands.
The HANDLE CONDITION command for a given condition applies only to the program in which it is specified. The HANDLE CONDITION command: v
Remains active while the program is running, or until:
– An IGNORE CONDITION command for the same condition is encountered, in which case the HANDLE CONDITION command is overridden
– Another HANDLE CONDITION command for the same condition is encountered, in which case the new command overrides the previous one v Is temporarily deactivated by the NOHANDLE, RESP, or RESP2 option on a command
372
CICS for iSeries Application Programming Guide V5
Preuzimanje
Oglas