COBOL/400 Program-ID query

130 pts.
Tags:
COBOL
COBOL PROGRAM-ID
COBOL/400
Hello Friends, I have a question related to PROGRAM-ID. Scenario: Source name is “PGMA”.I specify program name as “PGMB” in PROGRAM-ID. While compilation it hasn’t thrown any compilation error. Since it’s not throwing any compilation error, then what is the significance of PROGRAM-ID and why we are using? Thanks & Regards Bibin George

Answer Wiki

Thanks. We'll let you know when a new response is added.

When compling your program the diagnostic LNC0810 should have been logged in the compile listing. This message indicates that the module name PGMA does not match the PROGRAM-ID of PGMB. The program name used is PGMA.

This behavior is documented in the COBOL Reference under ‘PROGRAM-ID Paragraph’:

The name by which the program object is known to the system can be overridden by the PGM parameter of the CRTBNDCBL command. The name by which the module object is known can be overridden by the MODULE parameter of the CRTCBLMOD command. See the WebSphere Development Studio: ILE COBOL Programmer’s Guide for more information on the PGM or MODULE parameter.

Bruce
<a href=”http://www.brucevining.com/”>Bruce Vining Services</a>

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following