View previous topic :: View next topic
|
Author |
Message |
pradyumna_sethy
New User
Joined: 17 Jul 2005 Posts: 2 Location: bangalore
|
|
|
|
hi,
I have a calling pgm(A) and called pgm (B) . how can i pass data frm B to A ? |
|
Back to top |
|
|
IQofaGerbil
Active User
Joined: 05 May 2006 Posts: 183 Location: Scotland
|
|
|
|
A wild guess but I would try something like
in program-a
CALL program-b
using data-a
data-b
etc
and in program-b
you would have
PROCEDURE DIVISION USING data-a data-b etc |
|
Back to top |
|
|
ralph_v
New User
Joined: 07 Jul 2005 Posts: 27
|
|
|
|
You can make us of CALL BY REFERENCE i.e when u edit the data in program B , you can make use of the changes when control comes to Program A |
|
Back to top |
|
|
gowtham_1982 Warnings : 1 Active User
Joined: 02 Dec 2005 Posts: 109
|
|
|
|
hi pradyumna_sethy
once the control is transferred back to calling pgm from called pgm, the data will be available to the calling pgm.
I believe this is what your calrification is all about. for more info, you can have a look in manuals.
suggestions/corrections welcomed...
gowtham |
|
Back to top |
|
|
pradyumna_sethy
New User
Joined: 17 Jul 2005 Posts: 2 Location: bangalore
|
|
|
|
Thanks a lot |
|
Back to top |
|
|
Jag
New User
Joined: 07 Dec 2005 Posts: 30 Location: India
|
|
|
|
Hi Friends,
The easiest way to pass the data from Pgm to Pgm is using the Copy books...and use the copy books in linkage sections..
I think this is a good method..Isn't it? |
|
Back to top |
|
|
|