How to eliminate 1st and last rows from the source and load
the inbetween rows.

Answers were Sorted based on User's Feedback



How to eliminate 1st and last rows from the source and load the inbetween rows...

Answer / kamlesh mishra

The PowerCenter Server skips the specified number of rows
before reading the file. Use this to skip header
rows in the file.
And for last rows implement following logic.

1) Take sorter transformation reverse the rows on the basis of some key field like empno.
2)take expr transformation add nextval from sequence generator
3) Take filter transformation add condition nextval !=1 .
4)(optional)reverse the rows again using sorter transformation.
5) From filter to tgt connect the respective ports.

Src---->SQ--->SORTER--->EXPR---->FILTER---->SORTER---->TGT

Is This Answer Correct ?    6 Yes 0 No

How to eliminate 1st and last rows from the source and load the inbetween rows...

Answer / allen

Skipping the firt row in a flat file is easy:
The PowerCenter Server skips the specified number of rows
before reading the file. Use this to skip title or header
rows in the file.

Skipping the last row is not as easy. In my case, the last
row was a record count. I was able to check ports that
shouldn't be null, spaces or zeros and reject the row. The
LENGTH function can also be used to check the length of
data. Delimited or not has to be considered in any checks.

Is This Answer Correct ?    1 Yes 0 No

How to eliminate 1st and last rows from the source and load the inbetween rows...

Answer / manoj subramanian

I have done it using sequence generator,rank and filter transformation.
Filtering first record:
Generated sequence no using sequence transformation and given
as input to rank transformation.In properties selected
top and no of ranks as maximum rank allowed in informatica
then followed by filter transformation with filter condition
as rankindex<>1.
Filtering last Record:
Followed by another set of rank and filter wit rank property as bottom.

Is This Answer Correct ?    1 Yes 0 No

How to eliminate 1st and last rows from the source and load the inbetween rows...

Answer / sagarreddy

in source qualifier your using this query like this u get it
easily
select rowid from tablename
minus
(select min(rowid) from tablename
union
select max(rowid) from tablename )
if u write this query will work it plz go through it

Is This Answer Correct ?    1 Yes 3 No

How to eliminate 1st and last rows from the source and load the inbetween rows...

Answer / maneesh

To eliminate first row, simply use a counter in Expression and then Filter.

To eliminate the last row, make two pipelines with the same source
In first pipeline, use AGGREGATOR without any Group By ports In second pipeline, join it with the above with JOINER. Use and Outer Join and then other than that Joined row .. load all the rows.

Is This Answer Correct ?    0 Yes 4 No

Post New Answer

More Informatica Interview Questions

what is session override?

2 Answers   Cap Gemini,


How to Explain My project flow,In TCS ased me this question. In which way i can start my project flow and they asked how many fact tables and dimensional tables u used. Can any one Explain Briefly for this question and project architecture also.. please..

3 Answers   CTS, HCL, Infosys, TCS,


What is the difference b/w natural key and surrogate key

1 Answers  


How do you take back up of repository?

0 Answers  


Target increases every day even though no new record was inserted

0 Answers   Accenture,






how to run 2 workflows sequentially. plz respond what is the process?

9 Answers   Cap Gemini, Target,


What is an incremental loading? in which situations we will use incremental loading

2 Answers   HCL,


i have a table like empid ename year month sal 1 x 98 jan 500 1 x 98 feb 500 1 x 98 mar 500 1 x 99 jan 600 1 x 99 feb 600 2 y 98 jan 600 2 y 98 feb 600 2 y 98 mar 600 2 y 99 jan 700 2 y 99 jan 700 and so on i want to find out totsal for every emp on year wise plz help me

4 Answers   Magna Infotech,


What is meant by pre and post session shell command?

0 Answers  


how to return multiple columes through through un-connect lookup?

1 Answers   DELL,


what is fact and what types of fact tables is there

4 Answers   Cap Gemini,


Tell me any other tools for scheduling purpose other than workflow manager pmcmd?

0 Answers  


Categories