MVS JCL Return-code
5 pts.
0
Q:
MVS JCL Return-code
JCL, MVS
How do I pass pass a return-code of 4 back to MVS JCL?
ASKED: Jul 14 2009  8:02 PM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
390 pts.
0
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • AddThis Social Bookmark Button
What application are you running that issues the return-code.

There are several utility applications (IDCAMS, IEFBR14) which will allow you to pass cond-codes via JCL - I believe. I think if you try and delete a non-existant file using IEFBR14 (DISP=OLD,DELETE), it will finish, but issue a condition code. I think you can issue a cond-code using input values for IDCAMS also.

If it's a COBOL, FORTRAN, PL1, etc. program, you can imbed logic in the code to generate a cond-code via the JCL. In COBOL, I think if you set the CONDCODE or RETURN-CODE (- system reservered word), this value will be passed via the JCL.

I haven't worked in this arena in a while, but my memory seems to think this is how it can be done.

Regards
MM
Last Answered: Jul 15 2009  4:52 PM GMT by Sunsetrider   390 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



0