How do you set a return code to the JCL from a COBOL
program?

Answers were Sorted based on User's Feedback



How do you set a return code to the JCL from a COBOL program?..

Answer / suresh

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 ?    34 Yes 4 No

How do you set a return code to the JCL from a COBOL program?..

Answer / sudheer kumar

in you cobol program you have to code
move 8 to return-code


from jcl we have to check
if re=8
step12 exec pgm=progname
else
step13 exec pgm=progname3
end-if.

Is This Answer Correct ?    14 Yes 2 No

How do you set a return code to the JCL from a COBOL program?..

Answer / bodasureshreddy

you have to passes the returncode from cobol to jcl

Is This Answer Correct ?    11 Yes 4 No

How do you set a return code to the JCL from a COBOL program?..

Answer / suresh . e

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 14 No

Post New Answer

More COBOL Interview Questions

What does the INITIALIZE verb do?

1 Answers  


What is link edit in cobol?

0 Answers  


how will u retreive value from a table.write it with syntex. 01 ws-table 05 ws-table1 occurs 10 times. 05 ws-table2 occurs 10 times. the above is 2 dimensional array..how will u retrieve 1st element of an array

3 Answers   ADP,


How To Separate The Numerics From An Alphanumric Data Item Which Contains Both Alphabates And Numerics ?

4 Answers  


What is Comm?

2 Answers   IBM, Kemper Corporation,






What was removed from COBOL in the COBOL II implementation?

0 Answers  


How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

0 Answers  


What are different file OPEN modes available in COBOL?

4 Answers   Sun Life,


Is It Possible to Update or change in VIEW Mode?

5 Answers   CSC,


When can the USING phrase be included in the call statement ?

2 Answers  


What divisions, sections and paragraphs are mandatory for a COBOL program?

8 Answers   Arigo Infotech,


why mainframe we use not like java as frontend oracle as backend. or not word excel.In there also huge ammount data stored.

2 Answers   TCS,


Categories