View previous topic :: View next topic
|
Author |
Message |
go4salu
New User
Joined: 12 Jan 2006 Posts: 11
|
|
|
|
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.
Regards,
Shailendra |
|
Back to top |
|
|
gupta vishal
New User
Joined: 25 Sep 2007 Posts: 15 Location: Gurgaon
|
|
|
|
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.
Regards,
Vishal |
|
Back to top |
|
|
go4salu
New User
Joined: 12 Jan 2006 Posts: 11
|
|
|
|
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.
Please confirm on this asap
Thanks |
|
Back to top |
|
|
Earl Haigh
Active User
Joined: 25 Jul 2006 Posts: 475
|
|
Back to top |
|
|
|