Originally posted by: SystemAdmin
Raji,
Idiosyncrasies on being told what to do (Answer me!), I neglected to respond, but…
We capture bad data using the “REJECT()” function with the RESTART attribute.
If you have an input of a file of records, you put the RESTART attribute on the record level. This means, that if one of the records fails because a value in it is not in the restriction list, that record will not process, but all good records will. So you have the normal output card that will process the good records, but you build a second output card with a blob of text with (S) as the range, and put REJECT(records:inputfile). Then all the rejected records go to this output card, while all the good ones get processed normally. If this is X12 data, you won’t have to touch the type tree, only the map and redeploy the system. If the type tree is proprietary, you may have to put the “restart” attribute on if it is set to off.
#IBM-Websphere-Transformation-Extender#DataExchange#IBMSterlingTransformationExtender