
Contributor
2023-03-09
11:33 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
463 Views
1 Reply

Creator II
2023-03-11
09:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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)
Hope this helps
463 Views
