View previous topic :: View next topic
|
Author |
Message |
jzhardy
Active User
Joined: 31 Oct 2006 Posts: 139 Location: brisbane
|
|
|
|
in SQL I can force an exception (ie SQL state), but the net result is that the Job Step gets an RC 8.
Is there any way I can elevate the RC to a higher value ? Note that the step could fail for another condition - eg, insufficient user privileges - and for these I would always want to see RC 8. But I need to be able to identify a special condition based on RC.
I'll provide more details tomorrow as I'm writing this away from work. |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1316 Location: Vilnius, Lithuania
|
|
|
|
In PL/I
"if my_special_condition_is_met then call pliretv(42);"
And COBOL has a similar way to set return codes |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10891 Location: italy
|
|
|
|
the source for dsntep2 is available and can be modified,
You just need a pl/I compiler
the idug once upon a time used to have CSNTEP2 the equivalent of dsntep2 but written in cobol
it still there, not the latest thing but You might get a few ideas out of it
www.idug.org/page/codeplace-listing |
|
Back to top |
|
|
|