selective tables data

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
basu.ds
Participant
Posts: 118
Joined: Tue Feb 06, 2007 12:59 am
Location: Bangalore

selective tables data

Post by basu.ds »

hi
I have requirement like i have configuration it contains list of tables. i have to select table name and from table i have to select data for lgreaterthan one year how it can be done in datastage.
eq:
no tablename
1. employeetable
2.Department table
3.error table
first i have select data from employee table then from departmenttable and so on ....
bkumar103
Participant
Posts: 214
Joined: Wed Jul 25, 2007 2:29 am
Location: Chennai

Post by bkumar103 »

For each table you have to write the seprate extraction job, because all the table will have different metadata. If all the table has the same metadata then you can pass the table name as the parameter.
Birendra
basu.ds
Participant
Posts: 118
Joined: Tue Feb 06, 2007 12:59 am
Location: Bangalore

Post by basu.ds »

yes my metadata same for all tables can you alobrate on this please
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You have an 'employee', 'department' and 'error' table and they all have the same metadata? I find that hard to believe. Seems like you'll need to build X jobs and then have an intelligent process that reads your list of tables and determines which job to run based on the name found. Perhaps using some kind of a lookup structure.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply