
Processing Requirements Executing in CICS
10-14 User Reference
Processing Requirements
Step Action
1 Move the event name to the EVENT–NAME field. See "Posted Events," for
details about event–name limitations.
2 Link to the subroutine.
3 Check the return code passed and process accordingly.
WORKING-STORAGE SECTION.
01 EVENT.
02 EVENT-NAME PIC X(08).
02 EVENT-RETURN-CODE PIC X(01).
88 SUCCESS VALUE 'Y'.
88 FAILURE VALUE 'N'.
02 EVENT-POWER-MESSAGE PIC X(60)
PROCEDURE DIVISION.
MOVE 'PAY' TO EVENT-NAME.
EXEC CICS
LINK PROGRAM ('TSIDCCHK')
COMMAREA (EVENT)
LENGTH (69)
END EXEC.
IF SUCCESS
GOTO PERFORM
ELSE
GOTO WAIT.
...
This example checks for a posted event with TSIDCCHK. If the event is posted, it performs
the dependent task. If the event is not posted, it goes to the WAIT routine.
Procedure
Example
Comentarios a estos manuales