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 |
what is the minimum number of lines a Cobol program should have to successfully compile and run
11 Answers ABC, Societe Generale,
What are the divisions in a cobol program? Which one is the mandatory division among them?
what modification we need to do in jcl if we use sort in cobol? I mean whether we need to include tempary file used for sorting in assign statement?
How do you define a sort file in JCL that runs the COBOL program?
1)what is use of linkage section? 2)what is difference between comp and comp-3
What is the maximum length of a field you can define using COMP-3 in COBOL?
How can we increase the size of an existing PDS to include more no. of modules. I tried the answer posted by Jagan(TSO PDS 'pds name') but did not find it working. The answer posted by kamal i know very well. Please suggest me a answer so that we don't need to delete the existing PDS and still we can change the size as well.
copy 100 records without using ibm utilities
What is CALL statement in COBOL?
What is amode(24)?
Please let me know how the Eject verb works for page break.. I want to know the code, how it is used.
Which is not true about evaluate statement