Page 1 of 1

Significance of PROGRAM-ID

PostPosted: Mon Mar 16, 2009 4:32 pm
by sajin_ca
Hi,

I wrote a COBOL program in a member named ABC and i gave the PROGRAM-ID as XYZ . But when i staged it, the load name was ABC . And now my questions are,

1. What is the significance of Program-ID??
2. Why the load didn't created as XYZ even if the program name is XYZ ??? (ABC is the member name only right??)
3. If Program-ID is not having any role in the program load, why it is so important in a program???

Re: Significance of PROGRAM-ID

PostPosted: Mon Mar 16, 2009 7:43 pm
by Bill Dennis
I'll let someone else speak to the topic of the archaic structure of the COBOL Identification division.

For question 2, the same member name symbolic is typically used with a compile JCL procedure to identify the location of the source deck AND the member name of the load module in the load library. The member name of the module in the load library is the name the system uses to locate the program to execute. The program ID in the source is not used.

Re: Significance of PROGRAM-ID

PostPosted: Tue Mar 17, 2009 4:46 pm
by praveen522
Hi,
The program name that you
assign is used in these ways:
1.Other programs use the name to call your program.
2.The name appears in the header on each page, except the first page, of the
program listing generated when the program is compiled.
3.If you use the NAME compiler option, the name is placed on the NAME
linkage-editor or binder control statement to identify the object module created
by the compilation.

Re: Significance of PROGRAM-ID

PostPosted: Tue Mar 17, 2009 5:15 pm
by sajin_ca
Thanks for ur kind responce guys.

Expect more help from you in the coming posts.

:D