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: 8057
Location: East Dubuque, Illinois, USA

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: 8057
Location: East Dubuque, Illinois, USA

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. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm


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