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 / naga

take sequential file and give its output to copy and copy
it to two datasets.in one dataset select the partition on
deptno type=modulus and perform sort and select both stable
and unique you will get first redcords and in another
dataset select partition on deptno and type modulus and
perform sort and select only unique and give give both
dataset outputs to funnel and give its output to dataset

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How and where you used hash file?

1152


Explain the datastage parallel extender (px) or enterprise edition (ee)?

1214


If you want to use a same piece of code in different jobs, how will you achieve this?

1265


How to RD using transformer?

1409


why do u need the IOS upgradation in a FC switch

2268


What is the sortmerge collector?

1118


How to write a expression to display the first letter in Caps in each word using transformer stage ? Please let me know ASAP Thanks in advance...

1484


What are the main features of datastage?

1265


What are the differences between datastage and informatica?

1162


What are the functionalities of link partitioner and link collector?

993


What is a quality stage in datastage tool?

1063


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

1534


How many types of views are there in a datastage director?

1272


How many Key we can define in remove duplicate stage?

1359


What all are the different way to run a job?

1078