RATE THIS ANSWER
0
Click to Vote:
0
0
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.