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

Is it must that the program-id and member name should besame


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

New User


Joined: 15 Feb 2006
Posts: 5
Location: Noida

PostPosted: Tue Feb 21, 2006 7:24 pm
Reply with quote

Hi all,
Is it necessary that the name in program-id and the name of the
member in PDS where that cobol program is written should be same.
for ex

suppose the name of the member in the PDS is xits098.yogesh.cobol(m1)

IDENTIFICATION DIVISION.
PROGRAM-ID M1.


Thanx in Advance
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Tue Feb 21, 2006 8:18 pm
Reply with quote

Yogesh,

PROGRAM-ID M1. is for documentation purpose only, it should not make any difference if you change Program Name in this section.

But the member name where your source code is located, is picked by job, where you specify EXEC PGM=<PROG NAME>

Hope it solves your doubt.

Regards,

Priyesh.
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 Using API Gateway from CICS program CICS 0
No new posts DB2 Event passed to the Application P... DB2 1
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts EZT program to build a flat file with... All Other Mainframe Topics 9
Search our Forums:

Back to Top