supose if ur scr table contains alphanumeric values like
1,2,3,a,v,c in one columen like c1 n now u have load d data
in 2 seperare columns like ID should contain only numbers
1,2,3 n NAME col should contain a,b,cin target?How
Answer Posted / leo gilbert
Say your input is VAR1 which are a1 and 1a.
Have an expression transformation to create two more
variables VAR2 and VAR3 out of VAR1 using the SUBSTR
function.
VAR2 = SUBSTR(VAR1,1,1) and VAR3 = SUBSTR(VAR1,2,1).
For VAR1=a1, VAR2=a and VAR3=1
VAR1=1a, VAR2=1 and VAR3=a
Pass VAR2 and VAR3 to the router. Have one output group
with condition IS_NUMERIC(VAR2) and the other obviously is
the default group. For the first group connect VAR2 to ID
of target and VAR3 to NAME of target. For default connect
VAR2 to NAME and VAR3 to ID
Output
=====
ID NAME
= =====
1 a
1 a
| Is This Answer Correct ? | 0 Yes | 5 No |
Post New Answer View All Answers
Can you generate sequence numbers without using the sequence generator transformation?
What is persistent lookup cache?
What is the difference between stop and abort in informatica
How to use pmcmd utility command?
what is diff b/t sorter t/r and agg have the option sorter property...
How do you promote a non-reusable transformation to reusable transformation?
How many number of sessions can one group in batches?
Explain sessions. Explain how batches are used to combine executions?
Explain about cumulative Sum or moving sum?
How can you validate all mappings in the repository simultaneously?
Design a mapping to load a target table with the following values from the above source?
What is the advantage of informatica?
How to join three sources using joiner?
5. Consider the following products data which contain duplicate rows. A B C C B D B Q1. Design a mapping to load all unique products in one table and the duplicate rows in another table. The first table should contain the following output A D The second target should contain the following output B B B C C
waht type of interface is used for testing the data in informatica