Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
About calling program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL
Author Message
krbabu

Active User


Joined: 20 Feb 2004
Posts: 57

PostPosted: Mon Apr 19, 2004 9:54 am    Post subject: About calling program
Reply with quote

Hi,
I am calling prog B from prog A. In A i have intialized the variable num1 to 10 but in prog B i was change this num1 to 20. AT the time of return the program i want to num1 as 10. That means the value at prog A.
Is it possible? If so can any body expalin it with example.
Back to top
View user's profile Send private message
References
bluebird

Specialist


Joined: 03 Feb 2004
Posts: 144

PostPosted: Mon Apr 19, 2004 5:14 pm    Post subject:
Reply with quote

hello,

do a move 20 to num1 Before doing your call in pgm A then after the call do a
move 10 to num1 in pgm a

in pgm b you can do a move 20 to your num1 anytime

is this what u want ?
Back to top
View user's profile Send private message
krbabu

Active User


Joined: 20 Feb 2004
Posts: 57

PostPosted: Mon Apr 19, 2004 5:20 pm    Post subject:
Reply with quote

no no.
before call in prog A num1 is 10
and in called prog B num1 is 20. When i return the prog B to prog A i want the intial value of num1 which has intialed before the call B from A as 10.
Is it possible or not?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL All times are GMT + 6 Hours
Page 1 of 1