Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Talend Route - cFile Component

I have a route that uses cFile component. I am struggling to specify wild card to look for files that begin with something. For example I have files in a particular folder and they are named as ABC201508011353.csv, ABC201508021401.csv,... so basically one file per day. I specified the fileName attribute as  context.fileName + "${date:now:YYYYMMDD}*.csv" so that every time a file gets created that begins with ABC and ends with YYYYMMDD*.csv where * would cater for anything that appears after YYYYMMDD, but that doesn't seem to work. Am I doing something wrong?
Labels (2)
1 Reply
Anonymous
Not applicable
Author

 
Hi,
There is built-in function in Talend:TalendDate.getDate() returns the current date.
The fileName should be:
 
"FileName"+TalendDate.getDate(yyyyMMdd)*+".csv"

Best regards

Sabrina