Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 8500

DB2 :: RE: JCL to Set Return code based on DB2 SQL query result

$
0
0
Author: Robert Sample
Posted: Tue Mar 14, 2017 7:37 pm (GMT 5.5)

Quote:
Is there any way to reset the max return code back to 0, immediately after STEP03.
It depends upon why you want to reset it -- for the job or for the following steps. If your site is on z/OS 2.2 and you want the job code set, investigate the JOBRC parameter of the JOB statement. If your site is not yet on z/OS 2.2 or if you want the code 8 changed for following steps in the job, then you pretty much have to deal with the step condition code of 8.
_________________
TANSTAAFL

The first rule of code reuse is that the code needs to be worth re-using.

"We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil." -- Donald Knuth


Viewing all articles
Browse latest Browse all 8500

Trending Articles