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 is the difference beetween Arrays and Tables in Cobol? please dont give the answer that arrays in cobol terminology is called tables......
If you were passing a table via linkage, which is preferable - a subscript or an index?
what is call by value and call by reference ?
3 Answers Infosys, ITC Indian Tobacco Company,
which one is the best of com and com-3.using of real time ?
What is SSRANGE, NOSSRANGE ?
Hi , I am posting some questons which are asked at interview. These may help u for ur interview... what is static and dynamic call?
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
What is a scope terminator? Give examples.
what is index and how to use two tables using index?
How many times the loop runs here 01 a pic 9(2) value 1. perform para1 until a=10 move 1 to a. stop run. para1: move 10 to a.
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
What is different between variable length and fixed length?