IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

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


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
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
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Jun 19, 2009 11:31 pm
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
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: 2501
Location: Atlanta, Georgia, USA

PostPosted: Sat Jun 20, 2009 12:04 am
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Sat Jun 20, 2009 12:10 am
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Using API Gateway from CICS program CICS 0
No new posts Error to read log with rexx CLIST & REXX 11
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts Error when install DB2 DB2 2
Search our Forums:

Back to Top