Forcing a DataStage job to Abort based on a rule
Posted: Mon Aug 26, 2002 9:20 am
Does anyone know if there is a way to force a DataStage job to abort when a certain condition doesn't match?
I have the need to do balance and controls within DataStage 5.2 on HP-UXIX. I read a file that has the first record containing total count (of all records) and I'm to match it to the count of all records in the file. Once I have the total count of the records after processing then through a transformer I need to see if they match, if so continue processing otherwise abort the job and do not load the records to the Target table.
Has anyone done anything like this?
Any help would be great.
Thank you,
Clarence
I have the need to do balance and controls within DataStage 5.2 on HP-UXIX. I read a file that has the first record containing total count (of all records) and I'm to match it to the count of all records in the file. Once I have the total count of the records after processing then through a transformer I need to see if they match, if so continue processing otherwise abort the job and do not load the records to the Target table.
Has anyone done anything like this?
Any help would be great.
Thank you,
Clarence