How to load last 10 records of flat file in to the target?

Answer Posted / kalpesh radadia

SQ---- Exp ---- Sorter----Exp --- Filter---Sorter ---
Target.
Connect the source qualifier transfromation to an
expression transformation. In the expression
transformation, create the below ports:
v_cnt (variable port) = v_cnt+1
o_cnt (output_port) = v_cnt
Connect the expression transformation to the sorter
transformation. Sort the rows on the o_cnt port in
descending order.
Now connect the sorter transformation to the expression
transformation (do not connect o_cnt port).
Again Connect to expression transformation create the ports
mentioned above
v_cnt (variable port) = v_cnt+1 o_cnt
(output_port) = v_cnt
Connect to a filter transformation and specify the filter
condition as o_cnt<=N
Connect the expression transformation to the sorter
transformation. Sort the rows on the o_cnt port in
descending order.
Connec to the target

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we create multiple integration service on single repository?

801


What is the function of look up transformation?

761


HOW TO PROCESS THE ROWS FROM JOINER AND EXPRESSION TRANSFORAMTION TO SORTER TRANSFORMATION

1566


What are the settings that you use to configure the joiner transformation?

686


can anyone explain me about retail domain project in informatica?

7563






how to create user defined function (udf) in informatica

887


What are the main issues while working with flat files as source and as targets ?

746


What is transformation?

764


While migrating the data from one environment to another environment how would you manage the connections?

721


How to go to the older version for a mapping?

686


what is the -ve test case in your project.

1973


What is the difference between stop and abort in informatica

759


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

719


What is the sequence generator transformation in informatica?

736


What are the different clients of powercenter?

699