Reject load for SQLServer Enterprise Stage

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
ecclesr
Premium Member
Premium Member
Posts: 260
Joined: Sat Apr 05, 2003 7:12 pm
Location: Australia

Reject load for SQLServer Enterprise Stage

Post by ecclesr »

I have a simple job outputing to a SqlSever Enterprise stage

What is the best practice for code the job to pickup any rejected rows - as it is not an option to have a reject link from the SQLServer enterpise stage

This problem relates to version 8 of datastage

Thanking you all in advance
gnreddy
Participant
Posts: 8
Joined: Wed Jan 30, 2008 11:50 am
Location: Bangalore
Contact:

Re: Reject load for SQLServer Enterprise Stage

Post by gnreddy »

Hi,

Use LookUp to catch the rejected rows.U take two Target Tables.So that u
can pass matched values to one table and rejected rows to another table.

Regards,
gangula.narayan reddy
ecclesr
Premium Member
Premium Member
Posts: 260
Joined: Sat Apr 05, 2003 7:12 pm
Location: Australia

Re: Reject load for SQLServer Enterprise Stage

Post by ecclesr »

gnreddy wrote: Use LookUp to catch the rejected rows.U take two Target Tables.So that u
can pass matched values to one table and rejected rows to another table.
Can you please explain exactly what you mean

Original job would have been

sequential file stage --> Transform stage -> Sql server enterprise stage


Thanking you in advance
ecclesr
Premium Member
Premium Member
Posts: 260
Joined: Sat Apr 05, 2003 7:12 pm
Location: Australia

Re: Reject load for SQLServer Enterprise Stage

Post by ecclesr »

gnreddy wrote: Use LookUp to catch the rejected rows.U take two Target Tables.So that u
can pass matched values to one table and rejected rows to another table.
Can you please explain exactly what you mean

Original job would have been

sequential file stage --> Transform stage -> Sql server enterprise stage


Thanking you in advance
ecclesr
Premium Member
Premium Member
Posts: 260
Joined: Sat Apr 05, 2003 7:12 pm
Location: Australia

Re: Reject load for SQLServer Enterprise Stage

Post by ecclesr »

ecclesr wrote:
gnreddy wrote: Use LookUp to catch the rejected rows.U take two Target Tables.So that u
can pass matched values to one table and rejected rows to another table.
My SQL Server stage is a target and not a lookup so I do not understand why I would need to include a lookup stage. All I am interested in is capturing the RDBMS rejects and the RDBMS reject codes

My job would have been

sequential file stage --> Transform stage -> Sql server enterprise stage


Thanking you in advance
Post Reply