Hi, My job executes FILEAID to copy certain records of a file into other. When there is no record found, matching the selection criteria this step returns RC 8.
But, my requirement is that, "no record found" situation is acceptable and the job has to end with RC 0.
I tried the below code:
//STEP01 EXEC PGM=FILEAID
.....
....
// IF STEP01.RC = 8 THEN
//STEP02 EXEC PGM=IDCAMS
//SYSPRINT DD=*
SET MAXCC = 0
// ENDIF
Although STEP02 was executed the RC from the job was 8.
Please advice.