source has 2 fields like
COMPANY LOCATION
IBM HYD
TCS BAN
IBM CHE
HCL HYD
TCS CHE
IBM BAN
HCL BAN
HCL CHE
LIKE THIS.......
AND I WILL GET THE OUTPUT LIKE THIS....

Company loc count

TCS HYD 3
BAN
CHE
IBM HYD 3
BAN
CHE
HCL HYD 3
BAN
CHE

PLZ SEND ME ANSWER FOR THIS QUESTION..........

Answer Posted / solomon

2 ways to do it
1- input -> Transformer -> RDP-> output
Sort the input on location, company
do a comparison in Stage Variable with prev record and keep incrementing a counter
pass it via Remove duplicate stage to retain unique records
2- input-> copy-> agrregator-> lookup-> RDP -> output
do the same as above using agg and lookup stage

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you explain players in datastage?

713


What is the difference between in process and inter process?

678


Hi everyone,I have kept a project Sales And Distribution for a pharmaceutical company.can anybody explain one complex business rule that we had in our project and how did you accomplish it using DS?

1766


How a source file is populated?

620


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

800






A signal has a wavelength of 1 micro min in air.how far can the front of the wave travel during 1000periods?

2037


Hi,can any one please mention list of dimension and fact tables for Sales and Distribution System for a Pharmacutical company.

1671


How to RD using transformer?

868


What are system variables and sequencers in datastage

615


How can we perform the 2nd time extraction of client database without accepting the data which is already loaded in first time extraction?

1705


Difference between in process and inter process?

704


what is use of SDR function?

4714


What is the purpose of pivot stage and types of containers in datastage

617


disign the complex job in u r project?(they are aksing only complex job design and then data flow...)

2088


Have you used Unstructured data?

841