Coding program termination in PL/I under CICS
You can terminate a PL/I routine running under CICS® by using PL/I constructs or CICS statements such as EXEC CICS RETURN, EXEC CICS SEND PAGE RELEASE, EXEC CICS XCTL, or EXEC CICS ABEND. When the routine terminates, the following occurs:
- If you requested a storage report using the RPTSTG runtime option, the report is written to the CESE transient data queue (described in Runtime output under CICS).
- If CESE is still open, it is closed.
- All storage acquired by PL/I is freed before control returns to CICS, except for the stack.