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

Want your COBOL program to end with MAXCC = 4


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Lavanya_Dhushetty
Warnings : 2

New User


Joined: 30 Aug 2007
Posts: 24
Location: Chennai

PostPosted: Tue Sep 18, 2007 3:07 pm
Reply with quote

When the input file is empty you would always want your COBOL program to end with MAXCC = 4. How would you achieve this?

a. We cannot set return code through COBOL Program
b. None of the listed option
c. MOVE 04 TO MAXCC
d. MOVE 04 TO LASTCC
e. MOVE 04 TO RETURN-CODE
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Tue Sep 18, 2007 3:12 pm
Reply with quote

Lavanya_Dhushetty wrote:
These are the questions I have collected from prevoius papers.Some answers in this papers are not correct so I want it them to be clarified by this forum ...
Why don't you include the answer in the paper and your guess along with the questions?
Back to top
View user's profile Send private message
kgumraj2

New User


Joined: 01 Aug 2007
Posts: 42
Location: Hyderabad

PostPosted: Tue Sep 18, 2007 3:22 pm
Reply with quote

Hi,
In cobol RETURN-CODE is the register, use

Code:
MOVE  +04        TO  RETURN-CODE.     
Back to top
View user's profile Send private message
Lavanya_Dhushetty
Warnings : 2

New User


Joined: 30 Aug 2007
Posts: 24
Location: Chennai

PostPosted: Tue Sep 18, 2007 3:32 pm
Reply with quote

Thanks for the reply
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 COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
Search our Forums:

Back to Top