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
How a routine is called in datastage job?
What is the difference between hashfile and sequential file?
What is a folder? Difference types of stages?
What is meta stage?
project Steps,hits, Project level HArd things,Solved methods?
Name the command line functions to import and export the DS jobs?
What is the flow of loading data into fact & dimensional tables?
How to create a file using vi editor? 2)how to delete a file in vi editor? 3)How to connect the server datastage to unix? what r the command lines we r using? 4)30 jobs r runnig in unix i want to find out my job. how to do this? give me command?
8000 jobs r there i given commit, suddenly job will abort? what happens? 2)diff b/t transformer stage & filter stage? 3)how to load the data in the source?
What is difference between symmetric multiprocessing and massive parallel processing?
Difference between ‘validated ok’ and ‘compiled’ in data stage?
how to write server Routine coding?
Why we use surrogate key?
What is apt_config in datastage?
What are the various kinds of the hash file?