I want to read the file from FTP server to pentaho with this particular format.
tcms_oneed_YYYYMMDD.txt
YYYYMMDD is the sysdate.
I want to read the file from FTP server to pentaho with this particular format.
tcms_oneed_YYYYMMDD.txt
YYYYMMDD is the sysdate.
José Luciano da Silva
On
I believe you can use a get files and add a wildcard with regex to batch capture all files that are inside a directory.
PS: If you need to read one by one you can play inside a JOB and mark to read one line at a time, I hope that's what you need.
I'll leave a screenshot below of the demo of the test I did so you can view
Wildcard: tcms_oneed_\d{8}.*.txt
Copyright © 2021 Jogjafile Inc.
You pass the date in a parameter to the transformation and use the parameter when indicating the name of the file to read or you can calculate the file name in previous steps and check the box indicating to accept filenames from previous steps, indicating the name of the column with the filename.