ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage   interview questions urls   External Links  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  MainFrame  >>  IBM MainFrame  >>  COBOL
 
 


 

 
 COBOL interview questions  COBOL Interview Questions
 JCL interview questions  JCL Interview Questions
 CICS interview questions  CICS Interview Questions
 DB2 interview questions  DB2 Interview Questions
 IMS interview questions  IMS Interview Questions
 IDMS interview questions  IDMS Interview Questions
 Natural interview questions  Natural Interview Questions
 ADABAS interview questions  ADABAS Interview Questions
 REXX interview questions  REXX Interview Questions
 Assembler interview questions  Assembler Interview Questions
 CLIST interview questions  CLIST Interview Questions
 QMF interview questions  QMF Interview Questions
 MVS interview questions  MVS Interview Questions
 OS390 interview questions  OS390 Interview Questions
 OS 2 interview questions  OS 2 Interview Questions
 VSAM interview questions  VSAM Interview Questions
 QSAM interview questions  QSAM Interview Questions
 Sysplex interview questions  Sysplex Interview Questions
 IBM MainFrame AllOther interview questions  IBM MainFrame AllOther Interview Questions
Question
How do you set a return code to the JCL from a COBOL 
program?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How do you set a return code to the JCL from a COBOL program?
Answer
# 1
Move a value to RETURN-CODE register. RETURN-CODE should 
not be declared in your program.

MOVE 4 TO RETURN-CODE
 
Is This Answer Correct ?    1 Yes 0 No
Suresh
 
  Re: How do you set a return code to the JCL from a COBOL program?
Answer
# 2
you have to passes the returncode from cobol to jcl
 
Is This Answer Correct ?    0 Yes 0 No
Bodasureshreddy
 
 
 
  Re: How do you set a return code to the JCL from a COBOL program?
Answer
# 3
01 RETURN-CODE-OUT             PIC S9(09) USAGE COMP. 
01 RETURN-CODE-IND             PIC S9(04) USAGE COMP. first 
declaration is to define the variable for return 
code.Second declaration is for defining a Null indicator.
 
Is This Answer Correct ?    0 Yes 0 No
Suresh . E
 

 
 
 
Other COBOL Interview Questions
 
  Question Asked @ Answers
 
How to declare if emp-name = AAAAA""BBB in working-storage section. After display emp-name should print like AAAAA""BB Polaris3
Name the divisions in a COBOL program ?  3
What will happen if you code GO BACK instead of STOP RUN in a stand alone COBOL program ?  3
Can we use goto statement in inline_perform ? IBM2
hai friends ,i have HSBc exam on this sunday,my platform is Mainframe,i have 1 year exp,pls any one send me placement papers of Hsbc and technical questions on mainframe iNautix2
what is the minimum number of lines a Cobol program should have to successfully compile and run ABC7
Can a REDEFINES clause be used along with an OCCURS clause? if yes, 01 WS-TABLE. 03 WS-TABLE-EL OCCURS 5 TIMES PIC X(1) VALUE 'A'. 03 WS-EX REDEFINES WS-TABLE-EL PIC X(5). What can you expect? if no,why?  2
How to display string in the reverse order using occurs clause?  4
What is the output generated by the following code? 01 GRP-I. 05 SUBFLD1 PIC XX VALUE "AB". 05 FILTER PIC X(6) VALUE SPACES. 01 GRP-2 REDEFINED GRP-1. 05 SUB-FLD2 PIC XX. 05 SUB-FLD3 PIC XX. 05 FILTER PIC X(4). IF SUB-FLD1 NOT = SPACES DISPLAY "SUBFLD1" MOVE "ABBCCD" TO GRP-1 IF SUB-FLD3 = SPACES DISPLAY "SPACES" ELSE DISPLAY "SUBFLD3" DISPLAY "END" ELSE DISPLAY "SPACES" DISPLAY "END". (a) SUBFLD1 SUBFLD3 END (b) SPACES END (c) SUBFLD1 END (d) SUBFLD1 SPACES TCS5
What do you do to resolve SOC-7 error? Sun-Life1
When would you use in-line perform?  1
what is level 66 means??  3
How can I tell if a module is being called DYNAMICALLY or STATICALLY? CTS3
What is binary search?  2
PERFORM ACCUMULATE-TOTALS VARYING A FROM 1 BY 2 UNTIL A >2 AFTER B FROM1 BY 1 UNTIL B>2 AFTER C FROM 2 BY -1 UNTIL C<2 How many times the paragraph ACCUMULATE-TOTALS would be exicuted? TCS4
What is the difference between SEARCH and SEARCH ALL? What is more efficient?  3
Can we move X(9) to 9(9). If yes what are the ways for doing this?  1
what is meaning by design document? who can repared for this? TCS4
what r the types of perform statement  2
How do you sort in a COBOL program? Give sort file definition, sort statement syntax and meaning.  3
 
For more COBOL Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com