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

Question regarding passing values to a sub-program


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

New User


Joined: 22 Dec 2008
Posts: 87
Location: US

PostPosted: Mon Apr 19, 2010 6:37 pm
Reply with quote

Hi,

I have the subprogram linkage defined with three values A B and C.

When I call the program, I call using only A and B. Will this work fine as long as I dont refer to C in subprogram or will this not compile at all???

Regards,
Sumesh
Back to top
View user's profile Send private message
cybertaurean

New User


Joined: 22 Dec 2008
Posts: 87
Location: US

PostPosted: Mon Apr 19, 2010 6:38 pm
Reply with quote

Sorry,

The question is as follows -

I have A B and C in called program LINKAGE and I call it using A B C and a fourth parameter D.

What will be the output in the above case.

Regards,
Sumesh
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Mon Apr 19, 2010 6:47 pm
Reply with quote

Since your subprogram has no way of identifying the extra parameter(s), there is no way the subprogram can use it(them).

Why didn't you just test this (10 minutes would have done it)?
Back to top
View user's profile Send private message
cybertaurean

New User


Joined: 22 Dec 2008
Posts: 87
Location: US

PostPosted: Wed Apr 21, 2010 1:26 pm
Reply with quote

Thanks a lot Robert icon_smile.gif
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 Using API Gateway from CICS program CICS 0
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts DB2 Event passed to the Application P... DB2 1
No new posts How to pass the PARM value to my targ... COBOL Programming 8
Search our Forums:

Back to Top