View previous topic :: View next topic
|
Author |
Message |
dipti85 Currently Banned New User
Joined: 11 Jun 2009 Posts: 6 Location: chennai
|
|
|
|
What error i will get when i won't specify program-id in cobol. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Have you checked the manual? It specifically states PROGRAM-ID is not optional. The error that results is
Code: |
LineID Message code Message text
1 IGYDS1003-E A "PROGRAM-ID" paragraph was not found. Program-name
"CBLNAM01" was assumed. |
Why not try it yourself rather than asking somebody else? |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
Try it and find out. |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
Be careful, because some in-house PROC's will insert "IAMAPGM" as the PROGRAM-ID when it is omitted.
All kidding aside, this is a Sorry A$$ question to be asked during an interview. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Shoot, even COBOL uses a default name -- although it does generate an E-level error which will prevent the code from linking.
And you're right, Bill -- this is not a good interview question. I'm not sure what is supposed to be demonstrated if a candidate CAN answer the question, or if the candidate CANNOT answer the question (unless it is that the candidate has a grasp of obscure COBOL trivia). |
|
Back to top |
|
|
dipti85 Currently Banned New User
Joined: 11 Jun 2009 Posts: 6 Location: chennai
|
|
|
|
thanx for ur information |
|
Back to top |
|
|
|