Hi all,
If I do not define any Linkage section variable in my CICS program then while compiling, DFHCOMMAREA PIC X gets added automatically. This is for addressability to be maintained by CICS root program.
Everybody is ok with it??
If it is....
Now, there is a requirement to Link (call) a program say B and get back 8bytes variables from it and use it in the calling program say A.
In the working storage of calling prog A how should i define the variable?
01 WS-COMMAREA PIC X(9) or
01 WS-COMMAREA PIC X(8).
If I define it with PIC X(8) then won;t it truncate because the first byte will be used for addressability?
Please let me know asap, I'm stuck up. Thanks in advance.
Hi,
you should define it as 05 var pic x(08). The Listing thus produced as a result of compilation wouldn't truncate.The compiler add a default pic x(01) DFHCOMM when no linkage is actually there.
Thanks Vishal..
Compiler adds DFHCOMMAREA pic X, when there is no variable defined in lankage for addressability.
But what if there is already DFHCOMMAREA in the program. Then in that case system will assign first byte for addressability and rest we can use.. is it that way..
Or
when there is explicit DFHCOMMAREA then the compiler will not use the first byte of it for addressability and the all bytes can be used for data passage.