Commarea Vs Container
Commarea Vs Container
PROG1
PROG2
EXEC CICS GET CONTAINER(structure-name)
EXEC CICS ADDRESS COMMAREA(structure)
INTO(structure)
...
.
RETURN
.
EXEC CICS PUT CONTAINER(structure-name)
FROM(structure)
…
RETURN
Channels and containers
EXIT.
example of a linked to program that retrieves data from the channel it has been passed.
IDENTIFICATION DIVISION. PROCEDURE DIVISION.
PROGRAM-ID. SERVER1. MAIN-PROCESSING SECTION.