View previous topic :: View next topic
|
Author |
Message |
kondakonda
New User
Joined: 20 Mar 2006 Posts: 34
|
|
|
|
Hi,
It depends on the static call or the dynamic call.
if you are using static call then the sub program should be compiled and the sub program load module should be link edited to the main program in link edit step through lked.syslib dd statement.
if you are using dynamic call then the subprogram should be compiled and keep the load module in the same pds as your main program load module.
Please let know this is clear or you need any more information.
Thanks. |
|
Back to top |
|
|
parikshit123
Active User
Joined: 01 Jul 2005 Posts: 269 Location: India
|
|
|
|
Hi,
Compilation of the program remains same. It is the process of linking that resolves the external references ( like call to an external programs).
You need to spacify the load library of the calling program in the link step
e.g.
//SYSLIB DD DSNAME=YOUR.LOAD.LIB,DISP=SHR |
|
Back to top |
|
|
parikshit123
Active User
Joined: 01 Jul 2005 Posts: 269 Location: India
|
|
|
|
Hi,
While execution ( In your RUN jcl), both programs A and B needs to be present in STEPLIB/JOBLIB if your call is a dynamic call. Else, only program A needs to be present in the STEPLIB/JOBLIB.
Please check whether both the programs are present in the load libraries?
Thanks,
Parikshit |
|
Back to top |
|
|
kondakonda
New User
Joined: 20 Mar 2006 Posts: 34
|
|
|
|
Hi,
Could you please confirm where you included the load module of the subprogram in the main program jcl
Whether included in the compile step or link edit step?
Because the subprogram load module should be included in the SYSLIB of the link edit step.
Thanks. |
|
Back to top |
|
|
|