One flatefile it contains some data but i want to dont want
to load first and last record ..how it is? can u tell me
complete logic?

Answers were Sorted based on User's Feedback



One flatefile it contains some data but i want to dont want to load first and last record ..how it ..

Answer / ashok nidamanuri

We can implement like this
1)Take sequence genarator transformation and get sequence
of no's for each and every record
2)Then in expression take two output port's like out_min
and out_max.Assign Min and Max functions to corrsponding
output ports then u will get Min and max value of the
records
3)Take filter transformaton and filter those two records in
filter tarnsformation.

try with this!!!!!!!!!!!!!!!!!!!

Is This Answer Correct ?    3 Yes 6 No

One flatefile it contains some data but i want to dont want to load first and last record ..how it ..

Answer / purushothaman

put one expression after the source qualifer
and type this code

for example take this record
HDR20008
....
TRL2000800020

output variable name = IFF(SUBSTR(columnname ,1,3)
='HDR','Y','N')
Similarly put for trailer record condition in the
expression

after this expression put the one filter like this
output variable name ='Y'


cheers!!!!!!!!!!!!!!!!!

Is This Answer Correct ?    0 Yes 7 No

Post New Answer

More Informatica Interview Questions

How to create Target definition for flat files?

0 Answers   Informatica,


select * from emp where sal>(select min(sal) from emp) how to implement the same in informatica ?

5 Answers   Puma,


Can anyone tell me the new features in Informatica 9 Version?

0 Answers   Syntel,


What is the difference between IN and Exists in Oracle?

3 Answers   Deloitte,


What is the diff. b/w informatica versions 8.1.1 and 8.6.1?

4 Answers   IBM, Wipro,






Explian the connected and unconnected lookup transformation

1 Answers   Informatica,


Two relational tables are connected to SQ Trans,what are the possible errors it will be thrown?

2 Answers  


Informatica settings are available in which file?

0 Answers   Informatica,


how the data will be loaded while desiging the schema?which one first (for e.g.-dimesions and facts)

2 Answers   Sonata,


What is the different lookup cache(s)?

0 Answers  


i have a session which creates a file every time when i runs the session, but it replaces the first file with second file,i want to append the second file follwed by first file when i runs the session,how to achieve this?

1 Answers   Thomson Reuters,


What is olap (on-line analytical processing?

0 Answers  


Categories