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
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Load Module can be reffered by pgm name or pgm-id?
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: 7936
Location: Bellevue, IA

PostPosted: Tue Jun 01, 2010 5:05 pm    Post subject:
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    Post subject:
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    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 Need Rexx Program to Load in to DB2 T... Hareesh Verma CLIST & REXX 22 Tue Sep 20, 2016 2:59 pm
No new posts Copybook structure in Load module Vai123 COBOL Programming 7 Fri Sep 16, 2016 8:29 pm
This topic is locked: you cannot edit posts or make replies. ERROR WHILE SUBMITTING LOAD JOB ANURADHA NEELAKANTAN JCL & VSAM 12 Thu Aug 25, 2016 11:50 am
No new posts Execute multiple DB2 Load commands in... faizm DB2 4 Wed Aug 03, 2016 12:53 pm
No new posts How to get the program name of callin... pkmurali COBOL Programming 8 Mon Aug 01, 2016 3:36 am


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