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

Q:what is the difference between the variable length and fixed lenght.how it varies in the cobol.

12 Answers   CTS, Wipro,


if you code move high-values to variable,can you move it into numeric variable or alphanumeric variable?

1 Answers   Patni,


Describe the cobol database components?

0 Answers  


what are decleratives in cobol?

0 Answers   GGG, Satyam,


what happens if we wont give timestamp in precompilation process ?

4 Answers   Covansys,






i have the job which has written updated 100 records into the table and for 101th record it got abended and i want to start the job again and should wirte from 101th record not from 1st record..how to do it..?

6 Answers  


Explain call by context by comparing it to other calls.

1 Answers  


what are the utilities for load and unload the DB2 tables

1 Answers   L&T,


input:- A 10 20 30 40 B 5 7 10 14 C 8 12 14 16.... output:- A = 100,B=36,C=50. Here spaces are considered between numbers. When we give input as above, the numbers should be added n displayed.So please help me out.

4 Answers  


ID DIVISION. PROGRAM-ID. PLO. DATA DIVISION. WORKING-STORAGE SECTION. 01 VAR1 PIC 9(2). 01 VAR2 PIC X(2). PROCEDURE DIVISION. ACCEPT VAR2. MOVE VAR2 TO VAR1. STOP RUN. if i give 'PI' in var2 then what will b output of progr. any abend?????

6 Answers   TCS,


Can we dynamically increase the size of occurs clause? i.e In case I an not sure of the size of array and want to increase the size at run time.If yes , how?

1 Answers  


How you can read the file from bottom?

0 Answers  


Categories