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 |
What does the INITIALIZE verb do?
What is link edit in cobol?
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
How To Separate The Numerics From An Alphanumric Data Item Which Contains Both Alphabates And Numerics ?
What is Comm?
2 Answers IBM, Kemper Corporation,
What was removed from COBOL in the COBOL II implementation?
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
What are different file OPEN modes available in COBOL?
Is It Possible to Update or change in VIEW Mode?
When can the USING phrase be included in the call statement ?
What divisions, sections and paragraphs are mandatory for a COBOL program?
why mainframe we use not like java as frontend oracle as backend. or not word excel.In there also huge ammount data stored.