Originally posted by: SystemAdmin
Here's an input adapter string to list the files on an FTP server (this would be used with the RUN function):
-IAFTP1
'-URL "ftp://user:password@server/directory/*.txt;type=D" -T tracefile.txt -TIMEOUT 20'
replace the *.txt with a suitable string or just use *
to then pick up the files, iterate through them using:
-IAFTP1
'-URL "ftp://user:password@server/directory/filename;type=I" -T tracefile.txt -TIMEOUT 20'
and replacing
filename with the file names you retrieved in your directory listing.
If you want to improve performance, do the directory listing in one thread and retrieve the files back in multiple threads (you'd need some locking across the 2 processes though).
#DataExchange#IBMSterlingTransformationExtender#IBM-Websphere-Transformation-Extender