Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What is difference between symmetric multiprocessing and massive parallel processing?

1144


Name the third party tools that can be used in datastage?

1076


What is the difference between operational data stage (ods) and data warehouse?

1243


Explain the importance of surrogate key in data warehousing?

1191


What is usage analysis in datastage?

1309


How to implement complex jobs in data stage?

1112


Can you explain players in datastage?

1199


How to reverse the string using unix?

3510


What is orabulk stage?

1047


Differentiate between Symmetric Multiprocessing and Massive Parallel Processing?

1216


What is the difference between account and directory options ?

1182


Highlight the main features of datastage?

1160


how to connect source to db?generally what r stages u used? how to find the data is having delimiter format?

2375


How do you import and export data into datastage?

1235


Can you implement SCD2 using join, transformer and funnel stage?

1557