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

Use below stage variables

create 4 stage variables

STG1 =NAME:COMPANY

STG2=1

STG3= IF STG1:STG4 THEN STG3+1 ELSE STG2

STG4= STG1

create extra column for store this ranks.


After this stage use the sort stage to sort the data based on ranking column.

Then will get the exact output what we are looking.

krish IBM 1
pooja TCS 1
nandini WIPRO 1
krish IBM 2
pooja TCS 2

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How and where you used hash file?

1105


What are some prerequisites for datastage?

1037


Explain ibm infosphere information server and highlight its main features?

1033


How to find value from a column in a dataset?

2145


How can one find bugs in job sequence?

1314


Name the third party tools that can be used in datastage?

1019


explain about completely flow of sequencers technicaly,without using example??explain about lookup,nullhandling?

2404


What are constraints and derivations?

1111


explain about citrix scheduling tool in datastage

2376


What is developer responsibilities in UAT (user acceptance testing and Post implementation phase?

2040


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

1224


How a source file is populated?

1015


What is usage analysis in datastage?

1261


What is job control?

1031


what is the use of materialized view?

1482