How to pass return codes from cobol to jcl?
Answers were Sorted based on User's Feedback
Answer / ashl
Use the return-code variable and set to the desird value
move 16 to return-code
| Is This Answer Correct ? | 17 Yes | 3 No |
Answer / vivek
Move a value to RETURN-CODE register. RETURN-CODE should
not be declared in your program.
Ex: MOVE 4 TO RETURN-CODE
| Is This Answer Correct ? | 5 Yes | 1 No |
Answer / hari
move value to retun-code it should not declared in working -storage section.
by using internalreader we can pass the data from cobol to jcl
//sysout dd sysout=(*,intrdr)
| Is This Answer Correct ? | 4 Yes | 0 No |
HOW TO MOVE REDEFINES CLAUSE FROM INPUT TO OUTPUT ?
What is the difference between CONTINUE & NEXT SENTENCE ?
What are different file OPEN modes available in COBOL?
Why we should use cursor ?
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
How is sign stored in a COMP field ?
why 02 level number can't be use as a separate level number like 01 or 77 ?
Consider the following COBOL entries 05 X PIC 99 VALUE 10. ADD 40 X TO X. COMPUTE X = 3 * X - 40. The result in X is
wht is packed decimal in cobol
can you declare redefine in level 01?
I have a field with data type X(10). I want to perform arithmetic operation on this field? I tried doing it by moving the value into a numeric field. but it didn't work out. I am getting a S0C7 abend. Pls let me know if there is any way of getting this done?
How many bytes S(8) comp field occupy and its maximum value?