Quantcast
Channel: Pentaho Community Forums
Viewing all articles
Browse latest Browse all 16689

Retrieving file on server.

$
0
0
Hello all!
I am having some issues trying to access a file to read with my transformation. The ETL is located on a server and I need to retrieve a file that is loaded daily unto the system. Previously, I have been able to just use ${Internal.Transformation.Filename.Directory} and the file name with a dynamic variable(the date) however this file is located on the server but in a different location.

For example,
If the transformations are located on C:\Users\A\Transformations and the txt files are located on C:\DAILYLOAD\EXTRACTS

Can I directly link to this address in the text file input or would it be more beneficial to use a "Get a file with FTP" step? I would like to keep the files in the original location but if need be, I can transfer to a temp folder in the same location of the transformation.


What would be the best way to dynamically adjust the file name(date) to make sure only the most updated file is being used?
If C:\DAILYLOAD\EXTRACTS have the files
TEST1_20140603
TEST2_20140603
TEST1_20140604
TEST2_20140604

Is there some slick way to pull the most updated Test1 and Test2? Or should I use variable substitution?
-----------

Thank you so much for all your help. I hope to one day be able to contribute back to this wonderful forum soon.

Viewing all articles
Browse latest Browse all 16689

Trending Articles