Reject Rows from DB2 API stage.

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
rajan.n
Premium Member
Premium Member
Posts: 96
Joined: Mon Oct 09, 2006 7:47 am

Reject Rows from DB2 API stage.

Post by rajan.n »

Hi,

i have a req like need to collect the reject rows from the DB2 API stage,
for this i have learn from the help that
need to do the folowing:

1)Set the Parameter Array Size property to 1.

2)Use a Transformer stage to redirect the rejected rows.

i have set the parameter array size to 1 in the DB2API stage.

can any body help me how to do the second one i.e redirecting to transformer stage...?

rajan
us1aslam1us
Charter Member
Charter Member
Posts: 822
Joined: Sat Sep 17, 2005 5:25 pm
Location: USA

Post by us1aslam1us »

If you are designing something like this:

DB2 >>> Transformer >>> Target
V
V
Reject file

On whatever constraints or condition you want to capture the rejected records, define them in the transformer stage for the "reject file" link.
I haven't failed, I've found 10,000 ways that don't work.
Thomas Alva Edison(1847-1931)
rajan.n
Premium Member
Premium Member
Posts: 96
Joined: Mon Oct 09, 2006 7:47 am

Post by rajan.n »

us1aslam1us wrote:If you are designing something like this:

DB2 >>> Transformer >>> Target
V
V
Reject file

On whatever constraints or condition you want to capture the rejected records, define them in the transformer stage for the "reject file" link.
hey us1aslam1us
thanx for the responce,
mu design is like this,


seq--trnsform--DB2
so i need to collect the records rejected from DB2,now my design shud look like
seq--trnsform--DB2--trnsform-seq

i jst want to know how to redirect from DB2 to trnsformer..
once again thnx fro the reply.
rajan.
Krazykoolrohit
Charter Member
Charter Member
Posts: 560
Joined: Wed Jul 13, 2005 5:36 am
Location: Ohio

Post by Krazykoolrohit »

you can only capture logical rejects in server jobs as far as i know. You cannot have a reject link so you need to define a regular link and guide your reject rows to that link.

and you certanly cannot do anything like seq--trnsform--DB2--trnsform-seq if you want to capture rejects.

My suggestion: Identify what is causing the defects. Is it something in datastage or is it when you load into DB2
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

You need to specify the reject link from the same transformer which feeds the DB2 stage.
The constraint of the reject link will be

Code: Select all

<<DBLINK>>.REJECTED
where DBLINK is the link name going to your DB2 stage.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
rajan.n
Premium Member
Premium Member
Posts: 96
Joined: Mon Oct 09, 2006 7:47 am

Post by rajan.n »

DSguru2B wrote:You need to specify the reject link from the same transformer which feeds the DB2 stage.
The constraint of the reject link will be

Code: Select all

<<DBLINK>>.REJECTED
where DBLINK is the link name going to your DB2 stage.


Thanks a lot for the valuable responces...
my issue has resolved,
as said by guru, given in the trnsformer ( before the DB2) a reject so that i collected teh same from the transformer to a seq file.thnk u.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The convention here is to mark the thread as resolved.

And there's no need to thank "u" - whoever "u" is did not contribute to the answers.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
rajan.n
Premium Member
Premium Member
Posts: 96
Joined: Mon Oct 09, 2006 7:47 am

Post by rajan.n »

ray.wurlod wrote:The convention here is to mark the thread as resolved.

And there's no need to thank "u" - whoever "u" is did not contribute to the answers. ...
correct...! my appologise, i thank to the all, for the valuable responces.
Post Reply