View previous topic :: View next topic
|
Author |
Message |
eswar
New User
Joined: 19 Feb 2005 Posts: 5 Location: chennai
|
|
|
|
passing x(10) from program a to a program b which has x ( 8 ), will it get abend and if so what abend will u get |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
I would say no.
When data is "passed" from one pgm to another the data isn't moved to the receiving pgm. The address of the data is provided to the CALLed pgm and this address is used as a base address for the overlay used in the CALLed pgm LINKAGE SECTION. And because of this the CALLed pgm is only "accessing" the data defined by the datanames in its LS.
The only downside is that the CALLed pgm can't access the last 2 bytes of the CALLing pgm's data. |
|
Back to top |
|
|
|