Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am
No new posts LIBDEF not working in called proc packerm CLIST & REXX 0 Fri Sep 15, 2017 7:22 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us