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
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.





