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 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: 8151
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: 2504
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: 8151
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
No new posts FUSE - IBM MQ - CICS integration error Kevin Vaz CICS 0 Mon Sep 18, 2017 4:31 pm
No new posts Reply MQ open error Vignesh Sid COBOL Programming 5 Thu Sep 07, 2017 6:02 pm
No new posts Error in SQL-PLIST3 'Above value tru... rikdeb DB2 4 Wed Sep 06, 2017 1:34 pm
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
No new posts WER268A OUTREC STATEMENT : SYNTAX E... frozenblood87 SYNCSORT 12 Sat Aug 26, 2017 9:45 pm

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