did a sorting on both the fields emp_id and emp_date(secondary sort key)
then after use a remove duplicate stage (emp_id as a key column) to remove the duplicate.
Search found 16 matches
- Thu Jul 22, 2010 2:45 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Logic to get the ID with last date
- Replies: 6
- Views: 2538
- Thu Jul 22, 2010 12:13 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Why use server job?
- Replies: 18
- Views: 6869
- Tue Jul 20, 2010 10:05 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Why use server job?
- Replies: 18
- Views: 6869
- Tue Jul 20, 2010 5:52 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Why use server job?
- Replies: 18
- Views: 6869
Why use server job?
why use server job when we have parallel jobs which run much faster than server jobs?
- Wed Jun 23, 2010 5:28 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: How to Sort data from sequential file?
- Replies: 12
- Views: 5527
- Wed Jun 23, 2010 5:27 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: How to Sort data from sequential file?
- Replies: 12
- Views: 5527
- Wed Jun 23, 2010 2:50 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Logic to get the ID with last date
- Replies: 6
- Views: 2538
The input sequential file contains same emp_id but can have different date. The output should have single row containing emp_id, sal , date which is latest. Looking at the example it should have output dataset as: EMP_ID EMP_SAL EMP_DATE 1 100 01/01/2010 2 300 01/01/2011 3 200 01/01/2009 4 100 01/01...
- Wed Jun 23, 2010 2:27 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Logic to get the ID with last date
- Replies: 6
- Views: 2538
- Wed Jun 23, 2010 12:54 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Logic to get the ID with last date
- Replies: 6
- Views: 2538
Logic to get the ID with last date
Have a sequential file Columns: EMP_ID EMP_SAL EMP_DATE 1 100 01/01/2009 4 200 01/01/2005 2 300 01/01/2011 2 400 01/01/2009 1 100 01/01/2010 3 200 01/01/2009 4 100 01/01/2007 3 300 01/01/2006 . . . Output should contain the the emp_ID who has the latest date
- Fri Jun 18, 2010 2:44 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: How to Sort data from sequential file?
- Replies: 12
- Views: 5527
How to Sort data from sequential file?
Sorting data from sequential file.
- Thu Jun 17, 2010 11:04 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: More info on "PreviousRowCompare"
- Replies: 2
- Views: 1663
More info on "PreviousRowCompare"
Where do i get info about "PreviousRowCompare"?
- Wed Jun 09, 2010 1:10 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: What is Subroutine?
- Replies: 3
- Views: 2462
What is Subroutine?
Define Subroutine.
- Mon May 17, 2010 11:34 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: How to implement SCD2 in server jobs
- Replies: 1
- Views: 1368
How to implement SCD2 in server jobs
I am planning to apply SCD2 in server jobs. Can someone help me in the logic
- Wed May 12, 2010 1:26 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: How to assign previous value to stage variable?
- Replies: 4
- Views: 4655
- Tue May 11, 2010 10:35 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: How to assign previous value to stage variable?
- Replies: 4
- Views: 4655
How to assign previous value to stage variable?
I want to remove duplicate using stage variable.
For doing this I need to compare the current value of column with the previous value.
How do I maintain previous value in the stage variable?
For doing this I need to compare the current value of column with the previous value.
How do I maintain previous value in the stage variable?