I have a file it contain 2 records like empname,company as
Ram, Tcs and Ram, IBM. But i want empname,
company1,company2 as Ram, TCS,IBM in the target. How?
Answer Posted / venkatesh
The flow will be like this
src----->sorter---->transformer----->remove duplicates---->trg
SORTER
in sorter sort by the key=empname and create keychange column
TRANSFORMER
create two stage variables stg1 and stg2
if key change=1 then company else stg2 :',': company |stg1
_____________________________________________________|_____
|
stg1 |stg2
connect the stg1 as out put column and empname as output
from transformer connect to the remove duplicates
REMOVE DUPLICATES
key=empname
duplicates to retain=last
connect to the trg
u will get the output
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
Which commands are used to import and export the datastage jobs?
What are the functionalities of link partitioner?
client know skid info?
What could be a data source system?
How can we perform the 2nd time extraction of client database without accepting the data which is already loaded in first time extraction?
How rejected rows are managed in datastage?
What are the stages in datastage?
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.
What are the types of views in datastage director?
Differentiate between datastage and datastage tx?
I have a few records just I want to store data in to targets cycling way how?
Differentiate between Join, Merge and Lookup stage?
why do u need the IOS upgradation in a FC switch
what is flow of project?
what is repositery?