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: vinu78
Posted: Tue Mar 14, 2017 9:23 pm (GMT 5.5)

Arun - I have to send an error email (as in STEP03), only if the number of records got from STEP01 is > 1 or for empty file. So for Rec count exactly equal to 1, I need to skip STEP03 and then proceed with downstream steps.
Unfortunately my shop has SYNCSORT installed and so ICETOOL wont work. Whether similar logic is possible in SYNCSORT ? Also whether is it possible to reset the RC back to 0 immediately after STEP03.

Robert - I need to reset the MAXCC back to 0, because I am introducing Step1,2,3 on top of existing proc steps and so don't want to disturb the existing condition code checks used in the proc.

Dave - Thanks for the info. Will implement that.

Thanks
Vinu


Viewing all articles
Browse latest Browse all 8500

Trending Articles