MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Called program Working storage

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
rasprasads
Beginner


Joined: 10 Dec 2002
Posts: 59
Topics: 20
Location: Chennai

PostPosted: Wed Jul 27, 2005 9:54 pm    Post subject: Called program Working storage Reply with quote

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
View user's profile Send private message
Dibakar
Advanced


Joined: 02 Dec 2002
Posts: 700
Topics: 63
Location: USA

PostPosted: Thu Jul 28, 2005 3:32 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group