Author: vinu78
Subject: JCL to Set Return code based on DB2 SQL query result
Posted: Mon Mar 13, 2017 9:47 pm (GMT 5.5)
Hi All,
I am executing DB2 query in JCL using IKJEFT01 utility.
For the SQL CODE 0, if the extracted row count is > 1, I would like to set Return code as 0 else for all other cases, need to set RC as 4 . Then depending on this RC, I will process the downstream proc steps.
I am planning to have the DB2 query as SYSIN parameter of IKJEFT01 utility.
Please help me to set the Return code based on the SQL query results (based on COUNT as mentioned above)
Thanks
Vinu
Subject: JCL to Set Return code based on DB2 SQL query result
Posted: Mon Mar 13, 2017 9:47 pm (GMT 5.5)
Hi All,
I am executing DB2 query in JCL using IKJEFT01 utility.
For the SQL CODE 0, if the extracted row count is > 1, I would like to set Return code as 0 else for all other cases, need to set RC as 4 . Then depending on this RC, I will process the downstream proc steps.
I am planning to have the DB2 query as SYSIN parameter of IKJEFT01 utility.
Please help me to set the Return code based on the SQL query results (based on COUNT as mentioned above)
Thanks
Vinu