View previous topic :: View next topic
|
Author |
Message |
koteswara
New User
Joined: 23 Sep 2009 Posts: 22 Location: Bangalore
|
|
|
|
Hi All,
Could any one provide the process for compiling a statically called pgm.
PGM A is calling PGM B statically,then what it is the process for compiling these programs.
step1-Compile sub pgm for creating an object module
step2-Compile main pgm for creating an object module
step3-Link edit these pgms to form a single Load Module.
Do we need to concatenate the 2 object modules for creating the Load module?
If not please let me know the correct process.I don't want to use any version controllers. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
There is standard compile jcl on your system. You need to use this standard compile jcl.
Each module is compiled and linked separately. The sub program would be compiled/linked first.
Why are "version controllers" even mentioned. . . |
|
Back to top |
|
|
koteswara
New User
Joined: 23 Sep 2009 Posts: 22 Location: Bangalore
|
|
|
|
Thanks for the response
If the sub pgm is compiled and linked then we will have to load modules.But the concept of static call should have only one load module, where the sub pgm's load is embedded in the main pgm's load. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
As Dick said, contact your site support group so you use the site standard compilation process -- otherwise you can get into trouble. When you set up your compile using the materials your site support group gives you, you need to provide input to the linkage editor (binder) to tell it to include the subprogram as part of the calling program's load module -- and you'll need a DD statement pointing to the load library containing the subroutine. Again, this should all be part of the site standard compile process so contact your site support group. |
|
Back to top |
|
|
koteswara
New User
Joined: 23 Sep 2009 Posts: 22 Location: Bangalore
|
|
|
|
I have conactenated the object modules of the subpgm and mainpgm and Linkedited.I have used the parm as nodynam during the creation of main pgms's object module.Now sub pgm load module is embedded in mainpgm and the pgm is working as expected. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Good to hear it is working - thank you for letting us know
d |
|
Back to top |
|
|
|