Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
Could you please try to use a tFileList component to iterate your somefile_yyyymmdd.csv file in a given directory based on a file mask pattern?
tFileList(*.csv)-->tfileinputdelmited(((String)globalMap.get("tFileList_1_CURRENT_FILEPATH")) )-->output
Best regards
Sabrina
Hello,
Depends on when you want to parse it.
If it's the same day you can use in the file name :
"somefile_" + TalendDate.getDate("yyyMMdd") + ".csv"
If you want to parse it one every week, use a tFileList then iterate into a tFileInputDelimited.
Hope it'll help.
Use the below code -
((String)globalMap.get("tFileList_1_CURRENT_FILE")).replace(".csv","")+"_"+TalendDate.getDate("yyyyMMdd")+".csv"