Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

passing data frm called pgm to calling pgm

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
pradyumna_sethy

New User


Joined: 17 Jul 2005
Posts: 2
Location: bangalore

PostPosted: Fri May 12, 2006 2:57 pm    Post subject: passing data frm called pgm to calling pgm
Reply with quote

hi,

I have a calling pgm(A) and called pgm (B) . how can i pass data frm B to A ?
Back to top
View user's profile Send private message

IQofaGerbil

Active User


Joined: 05 May 2006
Posts: 183
Location: Scotland

PostPosted: Fri May 12, 2006 3:49 pm    Post subject: Re: passing data frm called pgm to calling pgm
Reply with quote

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

New User


Joined: 07 Jul 2005
Posts: 27

PostPosted: Fri May 12, 2006 7:35 pm    Post subject: Re: passing data frm called pgm to calling pgm
Reply with quote

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
View user's profile Send private message
gowtham_1982
Warnings : 1

Active User


Joined: 02 Dec 2005
Posts: 109

PostPosted: Sat May 13, 2006 3:47 pm    Post subject: Re: passing data frm called pgm to calling pgm
Reply with quote

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

New User


Joined: 17 Jul 2005
Posts: 2
Location: bangalore

PostPosted: Mon May 15, 2006 2:41 pm    Post subject:
Reply with quote

Thanks a lot
Back to top
View user's profile Send private message
Jag

New User


Joined: 07 Dec 2005
Posts: 30
Location: India

PostPosted: Wed May 17, 2006 11:10 pm    Post subject: Hi Friends
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Passing data from REXX to C programme... chong.zhou CLIST & REXX 2 Wed Jul 26, 2017 9:11 pm
No new posts Passing data from REXX to C programme... chong.zhou All Other Mainframe Topics 0 Wed Jul 26, 2017 4:55 pm
No new posts copying data without knowing location arunsoods DFSORT/ICETOOL 6 Thu Jul 20, 2017 1:03 pm
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Could we identify the called modules ... elixir1986 COBOL Programming 5 Fri Jul 14, 2017 1:53 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us