I have a comma separated value (csv) file which needs to be loaded into a table, using Informatica. First column contains a concatenated value, concatenated by a '~', which needs to be saved into 7 different columns.
Is there any way to do it?
There are four ways i think you can do but all has pros and cons.
v_pos1 = InStr( col1, '~', 1, 1)
v_pos2 = InStr( col1, '~', 1, 2)
v_pos3 = InStr( col1, '~', 1, 3)
...
Step 2 -
o_val1 = iif(v_pos1 =0,col1, SubStr( col1, 1, v_pos1 - 1))
o_val2 = iif(v_pos2 =0,'', SubStr( col1, v_pos1 + 1), SubStr( col1, v_pos1 + 1, v_pos2 - v_pos1 - 1))
o_val2 = iif(v_pos2 =0,'', SubStr( col1, v_pos2 + 1), SubStr( col1, v_pos2 + 1, v_pos3 - v_pos2 - 1))
...
LOOP
transformation. This is an extension and need some bit of research