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
 

 

Main pgm that call static subprog err out due to no load

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
erhema

New User


Joined: 07 Oct 2008
Posts: 23
Location: Chennai

PostPosted: Fri Oct 29, 2010 6:23 pm    Post subject: Main pgm that call static subprog err out due to no load
Reply with quote

Hi All,

My understanding is that the static sub programs load will be present along with the main program's load. Their load are not present seperately.

hence When i try to compile my main program that is currently in production (with NODYNAM option) that calls few static sub program, i did not provide any library since i do not have one that has the subprogram's load.

But my compilation of the main program error out saying 'MEMBER COULD NOT BE INCLUDED FROM THE DESIGNATED CALL LIBRARY' for each of the submodules.

Can any one advise me on this

Thanks for your help
Back to top
View user's profile Send private message

Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Fri Oct 29, 2010 6:29 pm    Post subject: Reply to: Main pgm that call static subprog err out due to n
Reply with quote

In order for the Main program to merge a Statically Called sub-program (load module) with itself, the loadlib where the sub-program lives must be included in the SYSLIB concatenation of the Link-Edit step.

Most shops have "canned" procedures for this....

Bill
Back to top
View user's profile Send private message
erhema

New User


Joined: 07 Oct 2008
Posts: 23
Location: Chennai

PostPosted: Fri Oct 29, 2010 6:31 pm    Post subject: Reply to: Main pgm that call static subprog err out due to n
Reply with quote

Main Program fails in Link Edit Step.

My question is "Why is the static sub program expecting a seperate load for each of the sub module ?"
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Fri Oct 29, 2010 6:34 pm    Post subject: Reply to: Main pgm that call static subprog err out due to n
Reply with quote

Do the Static Sub-Programs (called by the Main program) also statically CALL other sub-programs and so on and so on (several levels)?

Make sure someone isn't overriding your NODYNAM compile option, via a PARM (for the compiler) or a CBL card (first line in the source module).

Review your compile options in the listing.

Someone in your shop should be able to assist you with this....

Bill
Back to top
View user's profile Send private message
GuyC

Senior Member


Joined: 11 Aug 2009
Posts: 1281
Location: Belgium

PostPosted: Fri Oct 29, 2010 6:36 pm    Post subject:
Reply with quote

where else would the link edit find the loadmodules to include in the final loadmodule ?
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 Oct 29, 2010 6:36 pm    Post subject:
Reply with quote

Because a statically linked module exists as an independent load module. That load module must be included in the calling program's load module while compiling and linking the calling program to create the complete load module -- that's why it is a static and not dynamic module.
Back to top
View user's profile Send private message
erhema

New User


Joined: 07 Oct 2008
Posts: 23
Location: Chennai

PostPosted: Fri Oct 29, 2010 6:38 pm    Post subject: Reply to: Main pgm that call static subprog err out due to n
Reply with quote

HI Bill,

Thanks. I tried giving the load lib where the main program resides in the syslib, because i cannot find the seperate load for the sub modules.

Again this fails.
Back to top
View user's profile Send private message
GuyC

Senior Member


Joined: 11 Aug 2009
Posts: 1281
Location: Belgium

PostPosted: Fri Oct 29, 2010 6:43 pm    Post subject: Re: Main pgm that call static subprog err out due to no load
Reply with quote

erhema wrote:
... since i do not have one that has the subprogram's load...

It's impossible to link edit if you don't have the loadmodules of the static called routines
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6968
Location: porcelain throne

PostPosted: Fri Oct 29, 2010 8:06 pm    Post subject:
Reply with quote

Quote:
Again this fails.


no, what is failing is your inability to understand and acknowledge the info given to you.

as bill said, every shop has standard pre-compile/compile/link/Bind jcl.

why are you using your own garbage - and that is what it is........

talk to your support personnel.
we have nooooooooooooo idea what the names of your load pds's are.
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 Oct 29, 2010 8:43 pm    Post subject:
Reply with quote

Hello,

When these subprograms are changed/compiled/linked, where is the output from the linkedit stored?

As has already been mentioned, there are standard compile/link processes inplace on your system and you should use only these. . .

Several of my clients have terminated people for not using the standard compile processes. . . Just a caution.
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Db2 load job abending in SORT mistah kurtz DB2 4 Mon Jun 05, 2017 3:58 pm
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
No new posts Copy load modules and alias vasanthz IBM Tools 5 Thu Apr 20, 2017 6:31 am
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts Need help in triggering a PL1 module ... Varungv99 IMS DB/DC 0 Fri Apr 07, 2017 10:01 am


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