regarding transformer 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
vijaykumar
Participant
Posts: 228
Joined: Tue Oct 03, 2006 7:08 pm

regarding transformer stage

Post by vijaykumar »

hi,
my source is sql server
target is sql server.
my design is
iam using DRS stage to connect to SQL server and a transformer stage to perform transformations, and DRS stage as target.
i created another link from the transformer stage to sequential file inorder to catch the rejected rows.

i specified a constraint in the transformer stage,when specifying constraint properties.
i declared as
dslink4- dslink3.city='Berlin'
dslink6- dslink4.Rejectedcode
for specifying DSLINK4 as rejected row, i have checked that link.
here DSLINK4 AND DSLINK6 ARE OUTPUT LINKS AND DSLINK3 IS INPUT LINK.
i want to specify DSLINK4 as rejected link.
iam getting error in the transformer stage.
plz help me.

cheers;
vijay
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

You never mentioned what error message are you getting.
Change DSLink6 constraint to.

Code: Select all

dslink6- dslink4.REJECTED
You will also have to specify transaction size of 1 for this functionality to work properly. And there is a performance price to pay.
Uncheck the Reject box.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
thebird
Participant
Posts: 254
Joined: Thu Jan 06, 2005 12:11 am
Location: India
Contact:

Post by thebird »

If you want to specify DSLink 4 as the reject then give the constraint
dslink3.city='Berlin' against DSLink 6 and check the Reject Row check box for DSLink4.

What error are you getting?
us1aslam1us
Charter Member
Charter Member
Posts: 822
Joined: Sat Sep 17, 2005 5:25 pm
Location: USA

Post by us1aslam1us »

Hi Vijay,

What is the error message you are getting?

Sam
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

It is impossible to help you without knowing exactly what error message you are getting. Otherwise your question is like "my car won't start - what's wrong with it?".
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
vijaykumar
Participant
Posts: 228
Joined: Tue Oct 03, 2006 7:08 pm

Post by vijaykumar »

hi Gurus,
i have connected DSLINK4 to DRS STAGE AND DSLINK6 TO SEQUENTIAL FILE.
i want all the rejected rows to go to SEQUENTIAL FILE.
i specified constraint for this.

linkname constraint rejected row abort after rows

DSLINK4 DSLINK6.REJECTED 0

DSLINK6 DSLINK3.CITY='Berlin' checked 0

here DSLINK3 is the input link.

iam getting error as ERROR PROCESSING TRANSFORM DERIVATION FOR TRANSFORMER STAGE.
plz help me.

cheers;
vijay
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Your explanation does not make sense.
You said
i have connected DSLINK4 to DRS STAGE AND DSLINK6 TO SEQUENTIAL FILE
SO that means DSLINK6 is the reject link.
But you say
DSLINK4 DSLINK6.REJECTED 0

DSLINK6 DSLINK3.CITY='Berlin' checked 0
The link that is going to the DRS stage is used in the reject link's contraint as follows

Code: Select all

LinkToDRS.REJECTED
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
vijaykumar
Participant
Posts: 228
Joined: Tue Oct 03, 2006 7:08 pm

Post by vijaykumar »

hi,

Thanks very much.
once again thanks.

cheers;
vijay
Post Reply