I have quite a few processes where I retrieve a text file from an FTP site, use CPYFRMIMPF to get the data into a native database file, then run RPG pgms over it.
Until now, i have simply ensured that the file was a single file with the same filename.
This is all done through a scheduled CLP and FTP script
What i'm looking for is a way to do an MGET (get multiple files into a single folder on the IFS) and then copy what I get (one or more files) into my Physical file.
Any ideas?
Until now, i have simply ensured that the file was a single file with the same filename.
This is all done through a scheduled CLP and FTP script
What i'm looking for is a way to do an MGET (get multiple files into a single folder on the IFS) and then copy what I get (one or more files) into my Physical file.
Any ideas?
Comment