I am looking to create a JCL stream that will do the following:
Step 1: Run a instream DB2
Param1 = SELECT TRUNC_TIMESTAMP(CURRENT TIMESTAMP,'MONTH')
FROM SYSIBM.SYSDUMMY1;`
Step 2:
Param2 = SELECT TRUNC_TIMESTAMP(CURRENT TIMESTAMP + 1 month,'MONTH')- 1 MICROSECOND)
FROM SYSIBM.SYSDUMMY1;
Step 3:
SELECT COUNT(*)
FROM HLVQUAL.TABLE_NAME
WHERE CREATE_TS between Param1 AND Param2
I will highly appreciate any examples, how-tos and other helpful comments to resolve my issue.