Page 1 of 1

Program-id

PostPosted: Mon Dec 20, 2010 9:52 am
by ABiradar
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?

Re: Program-id

PostPosted: Mon Dec 20, 2010 10:14 am
by dick scherrer
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:
http://publibz.boulder.ibm.com/cgi-bin/ ... lr50/3.1.1

Re: Program-id

PostPosted: Mon Dec 20, 2010 1:39 pm
by enrico-sorichetti
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 )

Re: Program-id

PostPosted: Mon Dec 20, 2010 5:21 pm
by Robert Sample
PROGRAM-ID will be the default load module name for the program. This can be changed via linkage editor / binder overrides, though.