My requirement:
I am having a job with 3 steps to do the following,
ST010 - To check if Data set is empty or not,
ST020 - If its not empty then do ST020 should execute.
ST030 - SET RC of the job to ZERO..
i am using the following code..
Code: Select all
//ST010 EXEC PGM=IDCAMS
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//FILEIN DD DSN=IN5637S.PL1.INOUT.IBANIN,DISP=SHR
//SYSIN DD *
PRINT INFILE(FILEIN) -
CHARACTER COUNT(1)
/*
//ST020 EXEC PGM=SAMPLE1,COND=(4,EQ,ST010)
//STEPLIB DD DSN=NLHRPAY.DEV1.PGML,DISP=SHR
//INFILE DD DSN=IN5637S.PL1.INOUT.IBANIN,DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//*
//ST030 EXEC PGM=IDCAMS,COND=EVEN
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
SET MAXCC=0
/*
If i use SET MAXCC=10 in ST030 then the MAXCC of the overall job is set to 10....But when i place 0 its not working out.
Please help me out.