Significance of PROGRAM-ID



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

Significance of PROGRAM-ID

Postby sajin_ca » Mon Mar 16, 2009 4:32 pm

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???
Kind Regards,

Sajin CA
User avatar
sajin_ca
 
Posts: 2
Joined: Mon Mar 16, 2009 4:11 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Significance of PROGRAM-ID

Postby Bill Dennis » Mon Mar 16, 2009 7:43 pm

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.
Regards,

Bill Dennis

Disclaimer: My comments on this forum are my own and do not represent the opinions or suggestions of any other person or business entity.
Bill Dennis
 
Posts: 278
Joined: Thu May 15, 2008 9:45 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Significance of PROGRAM-ID

Postby praveen522 » Tue Mar 17, 2009 4:46 pm

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.
praveen522
 
Posts: 2
Joined: Tue Mar 17, 2009 4:41 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Significance of PROGRAM-ID

Postby sajin_ca » Tue Mar 17, 2009 5:15 pm

Thanks for ur kind responce guys.

Expect more help from you in the coming posts.

:D
Kind Regards,

Sajin CA
User avatar
sajin_ca
 
Posts: 2
Joined: Mon Mar 16, 2009 4:11 pm
Has thanked: 0 time
Been thanked: 0 time


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post