Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Error when i won't specify program-id in cobol

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
dipti85
Currently Banned

New User


Joined: 11 Jun 2009
Posts: 6
Location: chennai

PostPosted: Fri Jun 19, 2009 11:19 pm    Post subject: Error when i won't specify program-id in cobol
Reply with quote

What error i will get when i won't specify program-id in cobol.
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7935
Location: Bellevue, IA

PostPosted: Fri Jun 19, 2009 11:31 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Fri Jun 19, 2009 11:31 pm    Post subject:
Reply with quote

Try it and find out.
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Sat Jun 20, 2009 12:04 am    Post subject: Reply to: Error in cobol
Reply with quote

Be careful, because some in-house PROC's will insert "IAMAPGM" as the PROGRAM-ID when it is omitted. icon_biggrin.gif

All kidding aside, this is a Sorry A$$ question to be asked during an interview. icon_rolleyes.gif
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7935
Location: Bellevue, IA

PostPosted: Sat Jun 20, 2009 12:10 am    Post subject:
Reply with quote

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
View user's profile Send private message
dipti85
Currently Banned

New User


Joined: 11 Jun 2009
Posts: 6
Location: chennai

PostPosted: Sat Jun 20, 2009 1:34 am    Post subject: What error i will get when i won't specify program-id
Reply with quote

thanx for ur information
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Full Time COBOL Software Development ... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:24 am
This topic is locked: you cannot edit posts or make replies. COBOL Software Development Lead at Fi... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:21 am
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us