i have to extract data from a flat file.the flat file has 10
records.i have to extract the 1st and 5th record every
time.how is it done.
Answer Posted / vinay
Here are the steps that you will need to follow to catch record numbers 1,5,11,15,21,25,31,35.....so on.
Step1: Create an expression T/F and define a variable to count the number of records, say we name it as "CNT"
CNT (int) = CNT+1
Step2: In the same T/F, at the end of all the ports define a flag, say we name it as
flg_VALID_ROW (string(1))=
IIF((SUBSTR(TO_CHAR(CNT),-1)= '1' or
(SUBSTR(TO_CHAR(CNT),-1)= '5'),'Y','N')
Step3: Next define a Filter T/F, where you can catch hold of the record using flag = 'Y'
Filter Cond'n: flg_VALID_ROW = 'Y'
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How can you differentiate between powercenter and power map?
What is the function of union transformation?
Some flat files are there, out of these having some duplicate. How do you eliminate duplicate files while loading into targets?
waht type of interface is used for testing the data in informatica
What are Dimensional table?
I want my deployment group to refer an external configuration file, while i deploy in the production environment. How can i achieve it.
Hi all , I am planning for informatica S - PowerCenter 8 Mapping Design certification. I have rewuired the dumps for the same. if anyone of you having the same pl. share it with me. This will be of great help. My contact is : sagardev7@gmail.com TIA , Sagar
What is the scenario which compels informatica server to reject files?
How do you handle two sessions in Informatica
Explain pmcmd command usage in informatica
Slowly changing dimensions, types and where will you use them
How is Source Side push down optimization different to just providing a SQL override in Source qualifier transformation.
What is meant by LDAP users?
How do you migrate data from one environment to another?
can anyone suggest best free Talend data integration training online