How to develop a job which will stop processing when FROM_DATE and TO_DATE is equal in data? Or
I want to abort the job when reject row count is more than 50?
Above scenarios can be implemented using Transformer Stage but How? Let's check this out -
- The Transformer can be used to conditionally abort a job when incoming data matches a specific rule.
- In our case 1, it is FROM_DATE = TO_DATE
- In our case 2, it is some reject condition
- Create a new output link that will handle rows that match the abort rule.
- Within the link constraints dialog box, apply the abort rule to this output link
- Set the “Abort After Rows” count to the number of rows allowed before the job should be aborted .
- In case 1, it should be 1. as we want to abort the job when FROM_DATE is equal to TO_DATE
- In case 2, it should be 50 as we want to abort the job when reject condition have more than 50 records
But, since the Transformer will abort the entire job flow immediately, it is possible that valid rows will not have been flushed from Sequential File (export) buffers, or committed to database tables.
It is important to set the Sequential File buffer flush or database commit parameters otherwise we have to manually remove the data which has been inserted into sequential file or database.
https://www.facebook.com/datastage4you
https://twitter.com/datagenx
https://plus.google.com/+AtulSingh0/posts
https://datagenx.slack.com/messages/datascience/