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

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

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

2387


What is the difference between account and directory options ?

1192


Terminate Activity

1289


Define APT_CONFIG in Datastage?

1097


Whats difference betweeen operational data stage (ods) and data warehouse?

1130


Difference between data warehousing and olap?

1101


What is difference between symmetric multiprocessing and massive parallel processing?

1156


Differentiate between hash file and sequential file?

1088


What are sequencers?

1131


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

1565


How do you register plug-ins?

974


Highlight the main features of datastage?

1176


What is the command line function to import and export the ds jobs?

1161


What is difference between server jobs & parallel jobs?

1057


Does datastage support slowly changing dimensions ?

1117