Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Cpages
Contributor
Contributor

how to extract the last row of a .dat file which the length is always different

Dear all,

We need to extract the last row of a .dat file, but we are not able to define how to identify the last one because at each execution the file doesn't have the same number of rows.

we tried to use tFileInputMSPositionnal component but we don't have a discriminating factor.

Is there any other component that can help us ?

Thanks in advance for your help.

Regards,

L &C

Labels (2)
1 Reply
tnewbie
Creator II
Creator II

Hello,

 

Step 1:

Have a tFileRowCount component which can count the number of lines in the .dat file

Step 2:

Use a sequence in a tMAP and fetch only the last row (equate your sequence to the row count you get from tFileRowCount)

0695b00000deSBXAA2.png 

0695b00000deSBIAA2.png 

Hope this helps