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: Wed Mar 15, 2017 10:37 am (GMT 5.5)

Arun,

The ICETOOL is working fine

//STEP01 EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//INPUT DD DSN=<flat file that has records>,DISP=SHR
//TOOLIN DD *
COUNT FROM(INPUT) NOTEQUAL(1) RC4
/*

So this sets RC as 0 if record count is 1, else for all other cases, it sets Rec count as 4.

Thanks
Vinu


Viewing all articles
Browse latest Browse all 8500

Trending Articles