Using Lookup Stage
Posted: Wed Dec 17, 2014 3:21 pm
I have 5 rows in input table. and the format is like that,
Date. code, count
2014-12-10, FINANCE, 150
2014-12-10, MARKETING, 200
2014-12-10, HR, 300
Now, the source is a table so, in one day there possible wont be any counts for HR, but in target file we need HR with count 0.
In query I got it, but want to achieve this in datastage.My job design is like this-
ROW GENERATOR
|
ODBC- LOOK UP - SEQUENTIAL FILE
'
So, I am generating 5 rows in row generator, and using look up stage. It is not working this way. Any help how to achieve this.
Bascially if there is no HR in source table,though I want to achieve like following..
Date. code, count
2014-12-10, FINANCE, 150
2014-12-10, MARKETING, 200
2014-12-10, HR, 0
thanks.
Date. code, count
2014-12-10, FINANCE, 150
2014-12-10, MARKETING, 200
2014-12-10, HR, 300
Now, the source is a table so, in one day there possible wont be any counts for HR, but in target file we need HR with count 0.
In query I got it, but want to achieve this in datastage.My job design is like this-
ROW GENERATOR
|
ODBC- LOOK UP - SEQUENTIAL FILE
'
So, I am generating 5 rows in row generator, and using look up stage. It is not working this way. Any help how to achieve this.
Bascially if there is no HR in source table,though I want to achieve like following..
Date. code, count
2014-12-10, FINANCE, 150
2014-12-10, MARKETING, 200
2014-12-10, HR, 0
thanks.