I am trying to setup a job in FME that reads a CSV file where the filename changes daily. The filename looks like this HHSVENDORS_02242020.txt. The HHSVENDORDS_ is always the same, but then it has the date appended in the format MMDDYYYY. Is there a way to dynamically create/read the input filename on a CSV reader? So when the job runs each evening, it will pull the correct file.
Solved
Parameters in input filename?
Best answer by ebygomm
There are a couple of ways to do this, either via a scripted python parameter or using a featurereader to read the CSV file instead of a standard reader.
For the featurereader route, a creator can be used to start the workspace, followed by an attributecreator to create the filename using Date/Time functions. Then you can use this as your filename in a featurereader.
The above example assumes you always want yesterday's date, rather than today's date
Reply
Rich Text Editor, editor1
Editor toolbars
Press ALT 0 for help
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.