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

first sort the both name and compamy and then,
using stage variable in transformer:
curr= name:company
val=if curr <> prev then 1 else val+1
prev=curr

o.p = val
name,company,val

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between sequential file and data set?

645


Differentiate between Symmetric Multiprocessing and Massive Parallel Processing?

626


What are stage variables?

638


How to perform incremental load in datastage?

670


what is repositery?

1297






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

1752


What are some prerequisites for datastage?

617


Hi guys, Please design a job for dis requirement with derivation(solution). my source table like dis. emp_no qualification 1 a 1 c 2 a 3 c 3 b To loaded to target like dis emp_no qualification 1 b 2 b 2 c 3 a my requirement is every employer have three qualifications i.e a,b and c. what qualification missed in source table that will be move to target systems. Hope u got it the requirement. Right Thanks.

2429


What are the stages in datastage?

639


How do you start developing a datastage project?

660


How to read multiple files using a single datastage job if files have the same metadata?

740


What are the main differences you have observed between 7.x and 8.x version of datastage?

624


What is the differentiate between data file and descriptor file?

863


What are transforms and what is the differenece between routines and transforms?

617


Can we use target hash file as a lookup ?

2816