Migrating pseudoconversational COMMAREAs on RETURN commands

To migrate two programs which use COMMAREAs to exchange a structure as part of a pseudoconversation, change the instructions shown in this table.

About this task

In these instructions, structure is the name of your defined data structure. The EXEC CICS GET CONTAINER and PUT CONTAINER commands use a 16–character field to identify the container. A helpful convention is to give the container the same name as the data structure that you are using, shown here as structure-name.

Table 1. Migrating pseudoconversational COMMAREAs on RETURN commands
Program Before After
PROG1
EXEC CICS RETURN TRANSID(PROG2)
COMMAREA(structure)
EXEC CICS PUT CONTAINER(structure-name)
CHANNEL(channel-name) FROM(structure)
EXEC CICS RETURN TRANSID(TRAN2)
CHANNEL(channel-name)
PROG2
EXEC CICS ADDRESS COMMAREA(structure-ptr)
EXEC CICS GET CONTAINER(structure-name)
INTO(structure)


dfhp3_ch67.html | Timestamp icon Last updated: Monday, 5 June 2017