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


Please Help Members By Posting Answers For Below Questions

Could anyone give brief explanation bout datastage admin

2143


Explain Quality stage?

880


What is the purpose of pivot stage?

822


How to perform incremental load in datastage?

883


Differentiate between Symmetric Multiprocessing and Massive Parallel Processing?

865






What are orabulk and bcp stages?

851


What is the use of hoursfromtime() function in transformer stage in datastage?

777


What is the purpose of interprocessor stage in server jobs?

1936


Can anyone tell me a difficult situation who have handled while creating Datastage jobs?

3023


Is possible to create skid in dim,fact tables?

2373


describe the Steps to confiure a Qlogic switch

2141


Why do you need stage variables?

899


In a batch if a job fails in between and you want to restart the batch from that particular job and not from the scratch then what will you do?

781


What are datastage sequences?

872


Differentiate between validated and Compiled in the Datastage?

882