Joining using 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
chrisjones
Participant
Posts: 194
Joined: Thu May 11, 2006 9:42 am

Joining using Transformer Stage

Post by chrisjones »

Hi ,
I noticed one server job design with as below.

ODBCStage--->HashFile
|

|
Oraclestage------>Transformer---->SeqFile


Based on SID Key they are joining Hashfile and Transformer but i want to know exactly which join they are doing..i mean innier or ourter or left?Please help me how to find this
Thanks,
Chris Jones
anbu
Premium Member
Premium Member
Posts: 596
Joined: Sat Feb 18, 2006 2:25 am
Location: india

Post by anbu »

Left outer join
You are the creator of your destiny - Swami Vivekananda
chrisjones
Participant
Posts: 194
Joined: Thu May 11, 2006 9:42 am

Joining using Transformer Stage

Post by chrisjones »

Thanks for the info..

But here ODBCstage is left or Oraclestage Left?
Thanks,
Chris Jones
anbu
Premium Member
Premium Member
Posts: 596
Joined: Sat Feb 18, 2006 2:25 am
Location: india

Post by anbu »

Left on the stream link
You are the creator of your destiny - Swami Vivekananda
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

All the data from the Oracle will pass through the Transformer and do a lookup against ODBC and find the corresponding match based on the key.
If no extra constraint been given in the Transformer, all the records from the input record (Oracle) will flow to the output.

Now you can decide, which outer is this.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
vivekgadwal
Premium Member
Premium Member
Posts: 457
Joined: Tue Sep 25, 2007 4:05 pm

Post by vivekgadwal »

As kumar_s pointed out, it depends on the condition in the Transformer. Please check the constraint and see if any condition like <Column from Hashed file>.NOTFOUND is mentioned.
Vivek Gadwal

Experience is what you get when you didn't get what you wanted
arunkumarmm
Participant
Posts: 246
Joined: Mon Jun 30, 2008 3:22 am
Location: New York
Contact:

Post by arunkumarmm »

If you do not have any constrain, It will be left.

If you want a inner join use Not(<LookupLinkName>.NOTFOUND) in the constrain.
Arun
Post Reply