souce file having the columns like
name company
krish IBM
pooja TCS
nandini WIPRO
krish IBM
pooja TCS
if first row will be repeat i want the result like this
name company count
krish IBM 1
pooja TCS 1
nandini WIPRO 1
krish IBM 2
pooja TCS 2


Answer Posted / reddymkl.dwh

SeqFile---->Sort---->Trms---->Dataset

Sort_Stage: Key=Company (Or) Name

Trms
----------

SV=Company
SV1= If dslink.Company=SV Then SV+1 Else 1

Add (count) column in Transformer stage
Map SV1 stage variable to Count column (SV1=Count)

Will get desired output..

Plz correct me if am wrong....

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is use of SDR function?

4715


Why fact table is in normal form?

683


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

679


How the ipc stage work?

680


Explaine the implimentation of scd's in ds indetail, please send me step by step procedure to perform scd's 1,2,3. Please replay for this, Thanks in advance

1755






How one source columns or rows to be loaded in to two different tables?

668


How many Key we can define in remove duplicate stage?

824


What is the difference between hashfile and sequential file?

728


Differentiate between datastage and informatica?

729


What is the roundrobin collector?

643


What is data partitioning?

747


Which is the best institute in Hyderabad to learn OBIEE and DataStage?Please tell me faculty name also

2749


How you can fix the truncated data error in datastage?

1210


Distinguish between informatica & datastage. Which one would you choose and why?

590


how to abort the job its matain duplicates?

2112