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 / amjad pasha
SOURCE ---> SORT STAGE(sort key mode = sort, create cluster
key change column and create key change column should be
false) ---> COPY STAGE ---> (2 REMOVE DUPLICATE STAGES)
REMOVE DUPLICATE STAGE_1 (key=dept and Duplicate to Retain
= First) AND REMOVE DUPLICATE STAGE_2 (key=dept and
Duplicate to Retain = Last) ---> FUNNEL STAGE (Funnel
Type=Continues Funnel) ---> TARGET
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What are the types of containers in datastage?
How to find value from a column in a dataset?
What are the different types of lookups in datastage?
Enlist various types of routines in datastage.
What are the main differences you have observed between 7.x and 8.x version of datastage?
What are the enhancements made in datastage 7.5 compare with 7.0?
What are the types of containers and how to create them?
How to read multiple files using a single datastage job if files have the same metadata?
How do y read Sequential file from job control?
Can you highlight the main features of ibm infosphere information server?
What is the process of killing a job in datastage?
what are the devoleper roles in real time? plz tell i am new to datastage....
if i have two tables table1 table2 1a 1a,b,c,d 1b 2a,b,c,d,e 1c 1d 2a 2b 2c 2d 2e how can i get data as same as in tables? how can i implement scd typ1 and type2 in both server and in parallel? field1 field2 field3 suresh , 10,324 , 355 , 1234 ram , 23,456 , 450 , 456 balu ,40,346,23 , 275, 5678 how to remove the duplicate rows,inthe fields?
What are the job parameters?
Differentiate between datastage and informatica?