Page 1 of 1

How to use rejected data in same job ?

Posted: Thu Feb 01, 2007 12:46 am
by swades
Hello, DataStage Gurus,

I am getting rejected data in sequential stage(flat file). I want to use this rejected data for further prosseing in the same job how can I do this ?

Please help me ?

Thanks

Re: How to use rejected data in same job ?

Posted: Thu Feb 01, 2007 1:41 am
by Ashish
Can you give me a rough picture about your job design

Thanks
Ashish Arora

Posted: Thu Feb 01, 2007 4:58 am
by kumar_s
May be not in the same job. Chances to get Read error or unexpected result based on the design of your job. Why do you need to use it in the same job?

Posted: Thu Feb 01, 2007 8:17 am
by DSguru2B
Its better to modularize you job. But if you insist, I dont see any problem in using the reject file in the same job. Onces all the records are written to the file, only then the read operation is going to start. Thats how it works in server. I am guessing the same rule applies in px as well :roll:

Posted: Thu Feb 01, 2007 8:29 am
by chulett
It would also help if you defined exactly what 'use this rejected data for further processing in the same job' means. And from what I recall, rejected data isn't all that 'usable', per se. :?

Posted: Thu Feb 01, 2007 10:41 am
by swades
Hi,
Thanks for Reply

In my Job I want to load unmatched data in Target Table for that I have used lookup stage and from this stage I am getting Unmatched data as rejected data AND that unmatched(Rejected) data I want to load to Target Table.

Thanks

Posted: Thu Feb 01, 2007 11:35 am
by us1aslam1us
swades,

Instead of using the sequential file just drop those rejected records from lookup stage directly to your target table.

PS: It will be better if you post your design.

Posted: Thu Feb 01, 2007 11:41 am
by swades
Thanks for Reply

I have resolve issue.

Here is what I have done:

I have directed rejected link to Transformer then I loaded to Target Table.

Thanks

Posted: Thu Feb 01, 2007 4:49 pm
by ray.wurlod
Was that a reject link from the Sequential File stage or from the Lookup stage?

I suspect the latter, but we're trying to help future searchers here.

Posted: Mon Feb 05, 2007 2:05 pm
by swades
Sorry for late reply.

Rejected link is from Lookup Stage

Thanks