Passing Dataset value to Oracle Database stage

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
Murali4u
Participant
Posts: 37
Joined: Sun Feb 21, 2010 12:27 pm

Passing Dataset value to Oracle Database stage

Post by Murali4u »

Hi guys,
I have a set of values in a dataset. I need to pass this value in oracle stage query window. Can any one suggest a solution if you come across.

Eg:

Dataset has thousands of reocrds.
156
245
335
424
.
.
.
1454

in the Database stage i have the query

Select * from empy where emp_ID = Dataset Value
Select * from empy where emp_ID = 156
Select * from empy where emp_ID = 245
and so on

how to achieve this..
Rockzz Tech
mansoor_nb
Participant
Posts: 48
Joined: Wed Jun 01, 2005 7:10 am

Post by mansoor_nb »

Hi Murali,

Perform a lookup or use a join stage between the Dataset and the database table.
Murali4u
Participant
Posts: 37
Joined: Sun Feb 21, 2010 12:27 pm

Post by Murali4u »

Mansoor - I need to pass the dataset value dynamically inside the database query.
The database has the query but does not have data in load.
Rockzz Tech
priyadharsini
Participant
Posts: 40
Joined: Mon May 11, 2009 12:19 am
Location: Madurai

Post by priyadharsini »

Use sparse lookup if you want to pass the value dynamically, but this is preferable based on the amount of data you are having it in source and reference link.
Murali4u
Participant
Posts: 37
Joined: Sun Feb 21, 2010 12:27 pm

Post by Murali4u »

Priya,

the data load will be around some 500K so, is this preferable to take on sparse matrix.
Rockzz Tech
Post Reply