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

file having these input and we have to get 3 output using same job Input 1 1 1 2 3 4 4 4 o/p1 o/p2 o/p3 1 1 2 2 1 3 3 1 4 4 4

981


How you Implemented SCD Type 1 & Type 2 in your project?

4180


Which warehouse using in your datawarehouse

2239


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

3296


What is the difference between orabulk and bcp stages?

1076


What are sequencers?

1173


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

1324


What is active and passive stage?

1469


How to read the length of word in unix?

1435


What is the difference between account and directory options ?

1235


If we take 2 tables(like emp and dept),we use join stage and how to improve the performance?

2104


What are the partitioning techniques available in link partitioner?

2330


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...

1563


Is it possible to implement parallelism in Mainframe Jobs ? If Yes how ? If no why ?

2324


Can you highlight the main features of ibm infosphere information server?

1126