I am having a FLAT FILE SOURCE as first line:
1000,null,null,null
second line as:null,2000,null,null 3rd line
as :null,null,3000,null and final line as:
null,null,null,4000 ............................Now i want
the OUTPUT as 1000,2000,3000,4000 to a FLAT FILE only.For
more clarification i
want to elimate nulls and want in a single line. Please
help me out

Answers were Sorted based on User's Feedback



I am having a FLAT FILE SOURCE as first line: 1000,null,null,null second line as:null,2000,null,..

Answer / srinivas

dataflow

FF-----> Sourcequalifier...>aggregatore T/F....>target

in aggregator transformation add three new ports
o_col1,0_col2,o_col2 and make output ports
and expression in out ports
o_col1-----MAX(col1),
o_col2-----Max(col2),
o_col3-----Max(col3);
and connect these output ports to target
you will get the resul

Is This Answer Correct ?    13 Yes 8 No

I am having a FLAT FILE SOURCE as first line: 1000,null,null,null second line as:null,2000,null,..

Answer / sushma

FF ---> SOURCE QUALIFIER ---> EXPRESSION ---> AGGREGATOR ---
>TARGET FILE

In Expression TRFM,
a) for each column, create an expr to replace null values
with 0.
IIF(ISNULL(port_name),0,port_name)
b) create an output port (dummy_col) and set its value to 1

In Aggregator TRFM
a) Group by the dummy_col
b) for each of the 4 columsn, find the max value

Is This Answer Correct ?    3 Yes 0 No

I am having a FLAT FILE SOURCE as first line: 1000,null,null,null second line as:null,2000,null,..

Answer / suri

thats a oracle answer
but in informatica u have to use reverse pivoiting

Is This Answer Correct ?    2 Yes 1 No

I am having a FLAT FILE SOURCE as first line: 1000,null,null,null second line as:null,2000,null,..

Answer / maheshkumar bvn

first convert flat file to oracle table

create table num_test(field1 int,field2 int,field3
int,field4 int);

insert into num_test values(1000,null,null,null);
insert into num_test values(null,2000,null,null);
insert into num_test values(null,null,3000,null);
insert into num_test values(null,null,null,4000);



select max(field1),max(field2),max(field3),max(field4) from
num_test;

result:
1000 2000 3000 4000

Is This Answer Correct ?    7 Yes 8 No

I am having a FLAT FILE SOURCE as first line: 1000,null,null,null second line as:null,2000,null,..

Answer / jayesh

Filter in source qualifire itself..in sq query or sq filter.

Is This Answer Correct ?    0 Yes 5 No

Post New Answer

More Informatica Interview Questions

write sql query following table quarter sales q1 1000 q1 2000 q1 3000 q1 4000 q2 5000 q2 6000 q2 7000 q2 8000 q3 1000 q3 2000 q3 3000 q3 4000 q4 5000 q4 6000 q4 7000 q4 8000 i want the output format like q1 q2 q3 q4 1000 5000 1000 5000 2000 6000 2000 6000 3000 7000 3000 7000 4000 8000 4000 8000

5 Answers   CTS,


Explain the shared cache and re-cache?

0 Answers  


How does a sorter cache works?

0 Answers  


What is a sorter transformation?

0 Answers   Informatica,


What is data movement mode in Informatica and difference between them?

0 Answers  






what is mean by grouping of condition column in lookup transformation?

1 Answers  


How an expression transformation differs from aggregator transformation?

0 Answers  


What do you mean by blocking transformation?

0 Answers  


write a sql query following table some duplicate present 1 1 2 2 3 3 4 5 i want the output unique one column duplicate another column following format like unique duplicate 1 1 2 2 3 3 4 5

2 Answers   TCS,


what is the difference between stop and abort

2 Answers  


How do you change parameter when you move it from development to production.

1 Answers  


Define mapping and session?

0 Answers   Informatica,


Categories