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

Process for compiling a statically called pgm


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
koteswara

New User


Joined: 23 Sep 2009
Posts: 22
Location: Bangalore

PostPosted: Fri Feb 12, 2010 2:25 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Feb 12, 2010 2:31 pm
Reply with quote

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. . . icon_confused.gif
Back to top
View user's profile Send private message
koteswara

New User


Joined: 23 Sep 2009
Posts: 22
Location: Bangalore

PostPosted: Fri Feb 12, 2010 2:54 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Fri Feb 12, 2010 5:48 pm
Reply with quote

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
View user's profile Send private message
koteswara

New User


Joined: 23 Sep 2009
Posts: 22
Location: Bangalore

PostPosted: Wed Feb 17, 2010 12:45 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Feb 17, 2010 8:13 pm
Reply with quote

Good to hear it is working - thank you for letting us know icon_smile.gif

d
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts step by step trace 4 ISPF dialog call... TSO/ISPF 17
No new posts Intertest Batch issue with called ass... COBOL Programming 4
No new posts process statement for SUPREC, CMPCOLM... TSO/ISPF 4
No new posts How to process dependent file based o... JCL & VSAM 8
No new posts Execute DSNTEP2 in REXX which is call... CLIST & REXX 4
Search our Forums:

Back to Top