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 are conformed dimensions?

1 Answers  


Is it passive or active when check and uncheck the box of DISTINCT in Sorter transformation? why?

6 Answers   iFlex, Morgan Stanley,


expain about the tune parameters?

0 Answers   TCS,


I have 2records in target table and this record is deleted in source. Now if I run mapping twice how many records do target will have,  source having 10records. Same with incrementally.  Please  answer me ASAP. 

1 Answers   Cipla, Quintiles,


i having mapping emp---> sq_emp--->target using this mapping i have to load dept table values into target... (condition assume there is no primary and foreign key relation between emp(table x) and dept (table Y))

5 Answers   Cap Gemini,






how to through logic of informatica using the push down optimization into oracle.

2 Answers   Hexaware,


Limitation of REPLACESTR. Is there any character limitation to it.

1 Answers   CTS,


What is deployemnt groups, Lables, query and dynamic deployment group.

1 Answers   IBM, SVP,


how will u load the data to diminision tables and fact tables,what is the hiraraichy why we are using hirarichy

2 Answers   TCS,


any one can informatica metirial to me ple forwrd to my mail id; gbalireddy@gmail.com

1 Answers  


can any one give some examples for pre sql and post sql(Except dropping and creating index).

0 Answers   Zensar,


daily how much amount of data send to production?

4 Answers   HSBC,


Categories