Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS


Postby ABiradar » Mon Dec 20, 2010 9:52 am

What is the importance of program-id in a cobol program.
Generally we code it same as the PDS member name which contains cobol code.
If Program-id is not same as member name, how will it effect?
Posts: 2
Joined: Mon Dec 20, 2010 9:36 am
Has thanked: 0 time
Been thanked: 0 time

Re: Program-id


Re: Program-id

Postby dick scherrer » Mon Dec 20, 2010 10:14 am

Hello and welcome to the forum,

Generally we code it same as the PDS member name which contains cobol code.
Yes, this is the rule in almost every organization. Unless specifically directed otherwise, you should do this. As the use of COBOL widens, this will change for some organizations.

Read here for more: ... lr50/3.1.1
Hope this helps,
User avatar
dick scherrer
Global moderator
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: Program-id

Postby enrico-sorichetti » Mon Dec 20, 2010 1:39 pm

there is no relation whatsoever between COBOL PROGRAM ID and member name per se...

when the compiler is invoked the compiler itself will not be aware from where the source program comes from
( it is just reading a PD dataset )

member name being the same as the PROGRAM ID depends only on strictly/loosely enforced standards.

is it required and used by some change management packages ??? strict standard
Your organization tells You so, a bit more loose one ( if not checked somehow )
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
Global moderator
Posts: 2643
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 130 times

Re: Program-id

Postby Robert Sample » Mon Dec 20, 2010 5:21 pm

PROGRAM-ID will be the default load module name for the program. This can be changed via linkage editor / binder overrides, though.
Robert Sample
Global moderator
Posts: 3367
Joined: Sat Dec 19, 2009 8:32 pm
Location: East Dubuque, Illinois
Has thanked: 1 time
Been thanked: 222 times

Return to IBM Cobol


  • Related topics
    Last post