View previous topic :: View next topic |
Author |
Message |
rasprasads Beginner
Joined: 10 Dec 2002 Posts: 59 Topics: 20 Location: Chennai
|
Posted: Wed Jul 27, 2005 9:54 pm Post subject: Called program Working storage |
|
|
I have a calling program as below :
01 WS-AREA-PASSED X(500).
01 WS-AREA-NOT-PASSED X(100).
CALL WS-PGM USING WS-AREA-PASSED.
Called program WS-PGM looks like :
LINKAGE SECTION.
01 WS-AREA-PASSED X(500).
PROCEDURE DIVISION USING WS-AREA-PASSED.
-------
When the data sent to WS-AREA-PASSED is greater than 500 chars,
Some of the data is carried over to WS-AREA-NOT-PASSED.
Is this overflow possible ? How can a called program update any WS area in the calling program without being passed to it ?
Please clarify. _________________ Rasprasad S |
|
Back to top |
|
 |
Dibakar Advanced

Joined: 02 Dec 2002 Posts: 700 Topics: 63 Location: USA
|
Posted: Thu Jul 28, 2005 3:32 am Post subject: |
|
|
Called program has the address of WS-AREA-PASSED of calling program. It is replacing data there depending the length of WS-AREA-PASSED of called program. |
|
Back to top |
|
 |
|
|