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

how to find main program & sub program?


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

New User


Joined: 26 Oct 2007
Posts: 9
Location: bangalore

PostPosted: Fri Jan 11, 2008 5:32 pm
Reply with quote

Hi,

suppose 2 programs are there A & B.

both programs varibales are writting in linkage section, A is calling B and send values to B, and B send the values back to A.

This time how to find which is main-program , sub-program?

I Think A is main program. This is correct?

pls let me konw any one.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Jan 11, 2008 5:49 pm
Reply with quote

all you know is that B is called by A.

you say that both programs varibles are in linkage section.

does that mean A has a procedure division using statement?

A could very well also be a subprogram.
Back to top
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Fri Jan 11, 2008 6:19 pm
Reply with quote

If A is calling B then A is the driver and be is subordinate to it in this case. But, A could be subordinate to some other program, we can't say without more details, but it probably doesn't matter in this case.
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 To find whether record count are true... DFSORT/ICETOOL 6
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
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
Search our Forums:

Back to Top