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

Answers were Sorted based on User's Feedback



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

Answer / amedela chandra sekhar

By using UNIX command tail command .
it display last N lines file.By default it display last 10
lines.
$tail file name

Is This Answer Correct ?    10 Yes 0 No

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

Answer / koti

sequence generator, rank transformation.. in rank
transformation write the condition 20 ranks, bottom to top..

Is This Answer Correct ?    11 Yes 5 No

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

Answer / 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

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

Answer / prasad

hi,
i am new for informatica. can u write condition in
filter t/f please.......

Is This Answer Correct ?    2 Yes 4 No

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

Answer / prathima

by using filter t/r after sourcequalifier t/r there we
write the condition.

Is This Answer Correct ?    3 Yes 10 No

Post New Answer

More Informatica Interview Questions

Hi All, I have three question. 1) How to remove the header and footer in a flat file in informatica? 2)How to load the first and last record of flat file into the target? 3)I have a Input and Output table. Input Name Salaray Month A 100 Jan A 200 Feb A 300 March B 400 April B 500 May B 600 June Output Name Salaray Month A 100 Jan A 300 Feb A 600 March B 400 April B 900 May B 1500 June How to implement and get the ouput as mentioned above. If Possible kindly provide the SQL query also. Kindly any one help to implement this concept. Thanks, Pradeep

3 Answers   CSC, iNautix,


If i have source as flat file. how can i store the header and trilor into one target and data into one more target. |------>target1(header+trailor) source------ |------>target2(data) can any one please help me

0 Answers   IBM, TCS,


Hi, I want to do Informatica Designer certification. Can anyone help me by providing the details on this. Thanks in advance. Regards, Arnab

0 Answers  


can we override a native sql query within informatica? Where do we do it? How do we do it?

0 Answers  


how will compare two mappings in two different repository?

2 Answers   Real Time, TCS,






what are the differences between powercenter 8.1 and powercenter 8.5?

2 Answers  


What is polling?

1 Answers  


How will you display 10-15 letters from a name? (for ex: name="sivasubram'aniam'ramakrishnan". o/p wanted="aniam")

4 Answers  


There are n numbers of flatfile of exactly same format are placed in a folder .Can we load these flatfile's data one by one to a single relational table by a single session??

9 Answers   TCS,


How can we use mapping variables in informatica?

0 Answers  


What is factless fact schema?

1 Answers  


Briefly describe lookup transformation?

0 Answers  


Categories