I have a scenario like
Deptno=10---->First record and last record
Deptno=20---->First record and last record
Deptno=30---->First record and last record
I want those first and last records from each department in
a single target. How to do this in DataStage, any one can
assist me.
Thanks in advance.

Answer Posted / ashok

Source--->Sort stage--->copy stage
From copy stage we have to take two source stages
(source1,source2)
source1-->Removeduplicate stage(in this we can get first
record from each dept)
source2--->Remove duplicate stage(in this we can get last
record from each dept)
using funnel we can add these results.

Is This Answer Correct ?    10 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Describe stream connector?

832


Explain usage analysis in datastage?

655


options available in sequence job to run,validate?

840


Explain the importance of surrogate key in data warehousing?

715


What is job control?

624






Explain connectivity between datastage with datasources?

599


What is data partitioning?

745


What are the functionalities of link partitioner?

620


How rejected rows are managed in datastage?

925


Hi, what is use of Macros,functions and Routines..? At what situation you are used. If you know the answer please explain it. Thanks.

1619


Explaine the implimentation of scd's in ds indetail, please send me step by step procedure to perform scd's 1,2,3. Please replay for this, Thanks in advance

1751


project Steps,hits, Project level HArd things,Solved methods?

1638


Why we use surrogate key?

699


Differentiate between validated and Compiled in the Datastage?

646


What all the types of jobs you developed?

667