Quantcast
Channel: SCN : Unanswered Discussions - Data Services and Data Quality
Viewing all articles
Browse latest Browse all 3719

How to use * when selecting files with File Location Object from FTP?

$
0
0

I have several files on an FTP site, with names such as:

 

  • B1.DAILY.FILE.TESTJOB.TXT
  • B2.DAILY.FILE.TESTJOB.TXT
  • B3.FILE.DATA.TESTJOB.TXT

 

Normally I would be able to use a filepath such as "B*.TESTJOB.TXT" and read the files correctly (for example, if it was reading text files from a local file directory).

 

My test data was more like "B123.DAILY.FILE.TESTJOB.*" which correctly read multiple files. as the only variation was at the end of the file.

 

However, when using the File System Location object I am not sure how to specify a wildcard not at the end of a path. The B*.TESTJOB.TXT filter does not work. I could modify my job to take a single filename and run multiple times for all my files, but this feels suboptimal.


Viewing all articles
Browse latest Browse all 3719

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>