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 are the limitations of Inline Perform?
What are ISOLATION LEVELS? Where do we need to specify them in compiling JCL (Exactly which statement and what is syntax for it)?
i WANT ALL ERROR codes IN CICS and DB2
9(2).99 how many bytes take? Why . consider as a byte?
What the difference is between continue and next sentence?
I have a files containing both duplicate and non-duplicate records.The file is already sorted by a key.I want to determine those records that are duplicate and records that are non-duplicate.If duplicate the record is move to a duplicate file and if non-duplicate that will be move to valid file.thank you
How to retrive the 9th records out of ten records using the cobol program ?
can we redefine 77 level item is it possible
where will we code call by content and call by reference dude pls reply soon ?
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
Which Search verb is equivalent to PERFORM…VARYING?