Hello I have following query
If I am CALLing a CICS prog PROGB from CICS prog PROGA. In the PROGA I code as below:
CALL WS-PROGB USING DFHEIBLK
DFHCOMMAREA
WS-VARIABLE
And in PROGB I code as below:
LINKAGE SECTION
01 WS-VARIABLE PIC X(80)
PROCEDURE DIVISION USING WS-VARIABLE
and I get the contents of WS-VARIABLE from PROGA to PROGB
If I do not want to use WS-VARIABLE in PROGB and want the contents of WS-VARIABLE from PROGA in DFHCOMMAREA of PROGB, can I use following ?
In PROGA
CALL WS-PROGB USING DFHEIBLK
WS-VARIABLE
In PROGB
LINKAGE SECTION
01 DFHCOMMAREA PIC X(80)
PROCEDURE DIVISION (*No USING here)
Kindly advise if latter is right way of coding. Though I ve seen it works.
Regds Parry