Reject rows

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
akrzy
Participant
Posts: 121
Joined: Wed Dec 08, 2004 4:46 am

Reject rows

Post by akrzy »

Is there any variable that shows a reason why input row was rejected?

Or other possibilty?

Thanks,
Anka
kab123
Participant
Posts: 92
Joined: Tue May 18, 2004 4:05 pm

Post by kab123 »

You can Use a number of DS functions like DSGetJobInfo, DSStageInfo, DSlinkInfo etc.. .
Thanks
akrzy
Participant
Posts: 121
Joined: Wed Dec 08, 2004 4:46 am

Post by akrzy »

I'm not sure,
because none of this functions tell me what was the reason of the row rejected.
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

Unless otherwise it is an error message returned by the call, you may have to identify the reason yourself. This is because the stages in DataStage rejects rows which differs as part of their functionality.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Check for link variables such as LASTERR and DBMSCODE.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
xlnc
Participant
Posts: 7
Joined: Mon Feb 21, 2005 4:43 pm

Post by xlnc »

If the row is rejected from any perticular stage then you might want to debug it using a peek stage and establish a reason why , but if it is a target stage then the best way is to go with a user defined update sql and capturing the error code.
chalasaniamith
Participant
Posts: 36
Joined: Wed Feb 16, 2005 5:20 pm
Location: IL

Re: Reject rows

Post by chalasaniamith »

use peek stage and find out where the row is getting rejected check with the variables,schema u can figure it out from there.
akrzy
Participant
Posts: 121
Joined: Wed Dec 08, 2004 4:46 am

Post by akrzy »

how can I use DBMSCODE or LASTERR?
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

These are values present under Link Variables -> Output. They mentioned the error value from the RDBMS stage. You need to transform this into meaningful values.
akrzy
Participant
Posts: 121
Joined: Wed Dec 08, 2004 4:46 am

Post by akrzy »

I can'y find LinkVariable in the Deriviation of Transformer Stage
akrzy
Participant
Posts: 121
Joined: Wed Dec 08, 2004 4:46 am

Post by akrzy »

In the Expression Editor the option "Link Variables >Constants..." is grey.

???
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

Because it is available from Server Edition.

You can set commit size of 1 and pass another link to reject with details of error.

For more information you can search the forum.
Post Reply