I have a flat file, in which i have two fields, emp_id,
emp_name. The data is like this,
emp_id,emp_name
101,soha
101,ali
101,khan
102,siva
102,shanker
102,reddy.
how to merge the names so that my output is like this
Emp_id Emp_name
101 Soha ali kahn
102 siva shenkar reddy
please provide solution
Answer Posted / nanda
In expression transformation take a variable port, lets say
v_emp_id and equate it to emp_id,
take one more variable port for calculation as v_cal
and write a expression in v_cal as
v_cal= iff(emp_id=v_emp_id, emp_name||v_cal, emp_name)-----
----- (1)
take an output port O_emp_name and
O_emp_name = v_cal
write the following as shown in the expression
transformation, i meant the order of ports and their
corresponding values
emp_id
emp_name
v_cal the (1) expression
v_emp_id emp_id
O_emp_name v_cal
send the output ports to aggregator and in aggregator
take a output port O_agg_emp_name
emp_id
emp_name
O_emp_name
O_agg_emp_name = last(O_emp_name)
send the emp_id and the O_agg_emp_name to the target
and thts it
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
explain any diffcult scenario that u have faced in your experience... or explain any complex maping u have developed?
What is workflow? What are the components of the workflow manager?
Can we create two repositories on same database instance in oracle?
Please let me know how to make Data masking in informatica..
How we can create indexes after completing the load process?
How to create or import flat file definition in to the warehouse designer?
In which transformation you cannot drag ports into it?
Briefly explain the aggregator transformation?
Explain pmcmd command usage in informatica
draw informatica architecture 8.6 ?
What is a filter transformation?
What is the function of union transformation?
As union transformation gives UNION ALL output, how you will get the UNION output?
Tell me about MD5 functions in informatica
Differentiate between source qualifier and filter transformation?