I need a way to get the return code from a step and make it available to another step like a system variable.
Can I do that?
For example, if a ADASTRIP or SORT abends, I would like to have the RC available for my next step, that would be a NATURAL PGM keeping track of job abends, reasons, etc.
If you have Entire System Server you might be able to scan the system messages to look for the condition code, but I don’t think MVS provides an interface for programs to get this information directly, so Natural won’t have a way.