Page 1 of 1

Target file in different location when there is a reject.

Posted: Thu Mar 27, 2008 12:45 am
by Sakthi_Sst
Hi All,

The sceranio is :

I have an input file with 10 records where I have an constraint in the transformer.
Based on my constraints 5 records go in to the target(Taget folder) which satisifies the constraint and the remaining 5 records get in to a reject link(Reject folder).

My requirement is when there is a rejected record I need to send the target file to different location other than the normal location.

When there is a rejected record :
1.Is it possible to send the target file to a different location(Mismatch folder) other than the normal location(Target folder) ?

Posted: Thu Mar 27, 2008 12:51 am
by Raghavendra
In After Job sub-routine write a script to check if there is a reject record.If you find reject record then move the file to the required location.