View previous topic :: View next topic
|
Author |
Message |
teji4
New User
Joined: 26 Oct 2007 Posts: 9 Location: bangalore
|
|
|
|
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 |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
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 |
|
|
stodolas
Active Member
Joined: 13 Jun 2007 Posts: 632 Location: Wisconsin
|
|
|
|
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 |
|
|
|