Home > Software > Data-Warehouse > Informatica
Interview Questions   Tutorials   Discussions   Programs   

Informatica - How to load only the first and last record of a flat file into the target?




1429
views
asked marvit September 20, 2014 08:05 AM  

How to load only the first and last record of a flat file into the target?


           

1 Answers



 
answered By vishnoiprem   0  
Create two pipeline in a mapping
1st pipeline would capture the first record, and 2nd one for last record.
 
1st Pipeline:
src-> sq-> exp(take a variable port with numeric datatype and pass through a output port 'O_Test')->filter(pass if only
O_Test =1)->tgt
 
2nd pipeline:
src->sq->agg(No group it will pass only last entry)->tgt
 
In session for 2nd instance of target enable 'Append if Exists' option
flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert