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
Lookup constraints
how to read 100 records at a time in source a) hw is it fr metadata Same and b) if metadata is nt same?
1.new record it will insert but changes of natural key is not present in taget i want to update (here key is composite natural key )can any one help this to explan how to do
What is the process of killing a job in datastage?
Define ds designer?
Field,NVL,INDEX,REPLACE,TRANSLATE,COLESC
To see hidden files in LINIX?
Define Merge?
What is the difference between datastage and informatica?
What is the command line function to import and export the ds jobs?
how do u catch bad rows from OCI stage? And what CLI stands for?
What is the difference between server job and parallel jobs?
1)How will u implement SCD2 by using surrogate key. 2)What are the disadvantages with surrogate key. 3)How will you handle nulls in your project for the varchar, integer data types. 4)Can I use two fact tables in star schema. 5)3 jobs are running on the 2 nodes after I added one more node so can I compile those jobs to run on three nodes.
Difference between sequential file and data set?
What are routines in datastage?