Author: Alks
Subject: COND parameter vs IF THEN ELSE
Posted: Fri Jun 17, 2016 5:28 pm (GMT 5.5)
Hi,
I have a requirement of checking the existense of a file before transmitting it through NDM.
COND Parameter:
In first step I'm checking if the file exists through IDCAMS. If it exists I use the RC=0 of above step to execute step 2 i.e. CDRBATCH.
Cond=(0,NE,STEP01)
It is working fine if the file does not exist i.e. RC=4. However if the file exists, the CDRBATCH step is executed, file is transmitted BUT the inbuilt abender step is also executed and the job abends
IF THEN ELSE:
I'm just using
IF STEP01.RC = 0 THEN
STEP02 >>>> CDRBATCH step
and its working fine for both existing and non-existing file.
Am I missing something here?
_________________
Alks..!!!
Subject: COND parameter vs IF THEN ELSE
Posted: Fri Jun 17, 2016 5:28 pm (GMT 5.5)
Hi,
I have a requirement of checking the existense of a file before transmitting it through NDM.
COND Parameter:
In first step I'm checking if the file exists through IDCAMS. If it exists I use the RC=0 of above step to execute step 2 i.e. CDRBATCH.
Cond=(0,NE,STEP01)
It is working fine if the file does not exist i.e. RC=4. However if the file exists, the CDRBATCH step is executed, file is transmitted BUT the inbuilt abender step is also executed and the job abends
IF THEN ELSE:
I'm just using
IF STEP01.RC = 0 THEN
STEP02 >>>> CDRBATCH step
and its working fine for both existing and non-existing file.
Am I missing something here?
_________________
Alks..!!!