How do you set a return code to the JCL from a COBOL
program?
Answer Posted / 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 |
Post New Answer View All Answers
What are different data types in cobol?
How do you differentiate between cobol and cobol-ii?
Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
Give some examples of command terminators?
What is the LINKAGE SECTION used in COBOL?
What is the difference between Global and External Variables?
what is the use of outrecord?
What is the difference between binary search and sequential search?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
Write a program to explain size error.
What are the access modes of START statement?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?