开发者

How to automate the retrival of files based on datestamp

开发者 https://www.devze.com 2023-03-19 18:35 出处:网络
Im new to the pentaho suite and its automation functionality. i have files that come in on a daily basis and two columns need to be put in place. I have figured out how to add the columns but now i am

Im new to the pentaho suite and its automation functionality. i have files that come in on a daily basis and two columns need to be put in place. I have figured out how to add the columns but now i am stuck on the automation side of things. The filename is constant but it has a datestamp at the end. EG: LEAVER_REPORT_NEW_20110开发者_高级运维623.csv. The file will always be in the same directory. How do i go about using Pentaho data integration to solve this issue? ive tried get files but that doesnt seem to work.


create a variable in a previous transform which contains 20110623 (easy with a get system info step to get the date, and then a select values step to format to string, then a set variables step)

then change the filename of the textfile input to use:

LEAVER_REPORT_NEW_${variablename}.csv

0

精彩评论

暂无评论...
验证码 换一张
取 消