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

Load Module can be reffered by pgm name or pgm-id?


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
thespider390

New User


Joined: 28 May 2010
Posts: 3
Location: New Delhi

PostPosted: Tue Jun 01, 2010 12:14 pm
Reply with quote

Hello everyone,

I need little clarification on 2 things:

1). LoadModule creates with program name(eg: member of a PDS) or PROGRAM-ID. pgm1.

We use Program Name in Complie and most important in RUN JCL (LoadLib) and I believe this is correct.

But when it comes to CALL(static or dynamic) we refer to PROGRAM-ID.

Please respond.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Tue Jun 01, 2010 5:05 pm
Reply with quote

Load modules can be created with any name you want. The default is the PROGRAM-ID but there is no requirement that the load module name be that. The CALL statement uses the PROGRAM-ID (which may be the load module name or it may be the name of a CSECT in the load module).

You can use the linkage editor (binder) statements
Code:
  ENTRY program-id-name
  NAME load-module-name
You would be advised to read the COBOL Language Reference and Programming Guide manuals (link at the top of the page) about PROGRAM-ID and PGMNAME and if you have questions after reading these manuals, please let us know.
Back to top
View user's profile Send private message
naziashaffi

New User


Joined: 27 May 2009
Posts: 22
Location: India

PostPosted: Wed Jun 02, 2010 12:25 pm
Reply with quote

When I compile my program and link edit it I find the load module with the name of my program (and not the Program-id) and I use the same name with proper DSN in my RUN JCL.

I do not find My Program-id any where.

If my program name is PGM1 and Program-id is REPORT then I always refer program name (PGM1) and not REPORT, even there, where Load Module is required.

But as Robert mentioned load Module is program-id(REPORT in this case),
I believe my assumption was wrong and need to go through the COBOL manuals.
In the meanwhile all replies regarding this will be highly appreciated.
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Load new table with Old unload - DB2 DB2 6
No new posts How to load to DB2 with column level ... DB2 6
No new posts REASON 00D70014 in load utility DB2 6
No new posts DB2 Load - Sort Or order BY DB2 1
No new posts DB2 Load - NUMRECS DB2 3
Search our Forums:

Back to Top