How do you set a return code to the JCL from a COBOL
program?
Answers were Sorted based on User's Feedback
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 |
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 |
Answer / bodasureshreddy
you have to passes the returncode from cobol to jcl
Is This Answer Correct ? | 11 Yes | 4 No |
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 |
Q:what is the difference between the variable length and fixed lenght.how it varies in the cobol.
if you code move high-values to variable,can you move it into numeric variable or alphanumeric variable?
Describe the cobol database components?
what are decleratives in cobol?
what happens if we wont give timestamp in precompilation process ?
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..?
Explain call by context by comparing it to other calls.
what are the utilities for load and unload the DB2 tables
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.
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?????
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?
How you can read the file from bottom?