Yep, breaking things up into several FTP scripts has been the most reliable method for me. This allows me to submit a bunch of jobs on the AS/400, and then disconnect my laptop and head home. Or for the times where I have to order PTFs after hours, I can connect into my work network using VPN, submit the jobs, and then disconnect. And by sending the FTP OUTPUT to a text member, I can see which, if any, failed, and then just re-run those.
By doing the FTP on the 400 right into the IFS, Yes, you still have to do the ADDIMGCLGE TOFILE(*FROMFILE), but that step runs pretty quick. I like to think of it as a half-step, compared with some of the other methods mentioned, i.e. using Download Director to FTP to your PC from IBM and then re-FTP from your PC to the AS/400, etc.
I suppose I could get real slick and write some code to check the FTP OUTPUT and then run the ADDIMGCLGE to make the whole thing automagic, but my goal is just get the files downloaded, cuz that is the part that takes the longest.
"Paul Nelson" <nelsonp@xxxxxxxxxxxxx> wrote in message news:mailman.9892.1221074711.2545.midrange-l@xxxxxxxxxxxxxxx
IBM's connection is flaky that way. Try doing a script per file. That's the
only way I've been able to make it work properly