IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Passing variables in linkage section


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sm_2009

New User


Joined: 10 May 2009
Posts: 72
Location: bangalore

PostPosted: Wed Jun 03, 2009 11:41 am
Reply with quote

hi all,

i need to call pgm2 from pgm1 4 times in different scenarios.

my question is the variables that i need to pass should be all same or different variables for differnet scenario will do.

i will make sure that all the variables are included in pgm2 linkage sction.

pls suggest.
Back to top
View user's profile Send private message
ashimer

Active Member


Joined: 13 Feb 2004
Posts: 551
Location: Bangalore

PostPosted: Wed Jun 03, 2009 1:28 pm
Reply with quote

are the variables of the same declaration ? why not pass all four variables on every call but only the relevant one has data in it ?
Back to top
View user's profile Send private message
sm_2009

New User


Joined: 10 May 2009
Posts: 72
Location: bangalore

PostPosted: Wed Jun 03, 2009 2:15 pm
Reply with quote

yeah, this will do.
thanks
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts Using Dynamic file handler in the Fil... COBOL Programming 2
No new posts Passing Parameters to Programs Invoke... PL/I & Assembler 5
No new posts Passing SYSPRINT to Invoked Program PL/I & Assembler 9
No new posts JCL with variables JCL & VSAM 1
Search our Forums:

Back to Top