Stages

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
samba
Premium Member
Premium Member
Posts: 62
Joined: Wed Dec 07, 2005 11:44 am

Stages

Post by samba »

I have two datasets

first dataset having the column names
1. JobName ----------- 2. JobNameresult
JobName ------- XXXXX


second dataset having the column names

1. Jobdesc ------- 2. Jobdescresult
Jobdesc ------- xxxxxxx


i have to load JobNameresult and JobdescResult into database

the database is having columns

1. JobName 2.Jobdesc 3.AAAA 4. BBBB
XXXXX xxxxxxx XXX XXXX



what is the best way to load into database


1. Dataset ------>

2. Datasset -----> what stage i need to use here ------>DATABASE


Thanks in advances
samba
gateleys
Premium Member
Premium Member
Posts: 992
Joined: Mon Aug 08, 2005 5:08 pm
Location: USA

Re: Stages

Post by gateleys »

What are the key columns in the two datasets that allows us to perform a lookup/join on the two?
You can use a simple lookup against a hashed file that is loaded with the lookup key and the JobDescResult columns. So, your design would be-

Code: Select all

                       JobDescHash
                          |
                          |
                          v
JobNameDataSet -------->Xfmr-------------->TargetDB
gateleys
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

you mean lookup against a lookup set :lol:
Last edited by DSguru2B on Fri May 19, 2006 10:16 am, edited 1 time in total.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
samba
Premium Member
Premium Member
Posts: 62
Joined: Wed Dec 07, 2005 11:44 am

Post by samba »

I dont have any key columns on two datasets
samba
samba
Premium Member
Premium Member
Posts: 62
Joined: Wed Dec 07, 2005 11:44 am

Post by samba »

here i have one column in first dataset
and one more column in second dataset
i dont have any other columns, i need to get two columns into one dataset or Database
samba
samba
Premium Member
Premium Member
Posts: 62
Joined: Wed Dec 07, 2005 11:44 am

Post by samba »

Can any one please help me
samba
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

you really need a key column to do the join on. Or how will you know what JobNameresult goes with what Jobdescresult.
WHere are these data sets coming from?
Are they being built from another table in the database or they have been built from some flat file?
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
samba
Premium Member
Premium Member
Posts: 62
Joined: Wed Dec 07, 2005 11:44 am

Post by samba »

HI Thanks for the information

I Generated dummy key column to get the information


Thanks
samba
Post Reply