Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Process for compiling a statically called pgm

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Process for compiling a statically called pgm
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

Site Director


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

PostPosted: Fri Feb 12, 2010 2:31 pm    Post subject:
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    Post subject:
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: 8117
Location: East Dubuque, Illinois, USA

PostPosted: Fri Feb 12, 2010 5:48 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Wed Feb 17, 2010 8:13 pm    Post subject: Reply to: Process for compiling a statically called pgm
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Could we identify the called modules ... elixir1986 COBOL Programming 5 Fri Jul 14, 2017 1:53 am
No new posts Compiling program in endeavor for tra... RALAKKAL Compuware & Other Tools 4 Mon Jun 05, 2017 8:27 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts Storing huge volume of data, compare ... Pradeep K M All Other Mainframe Topics 3 Mon Jan 16, 2017 5:08 pm
No new posts Viewing executing process in NDM .. q... Debb.Brant IBM Tools 0 Wed Dec 14, 2016 10:55 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us