|
From: Peter H. Coffin Database Marketing Tools Team T/L 665-6298 (414-223-6298) phcoffin@vnet.ibm.com Subject: Batch FTP Rob writes: The DOS is tangential to my real problem. The problem being, 'How do I automate the receiving of files to my AS/400 from the Internet?' What the DOS is teaching me is that piping the password is a trick. Does anyone have some clues as to how to do FTP with the AS/400 in batch? - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - You build a database file containing the commands that you want to have ftp execute, or use SEU to build a source file with those commands. (It doesn't matter whether you use a *SRC or *DATA file.) You override the default input using OVRDBF (think "pipe") like OVRDBF FILE(INPUT) TOFILE(MYLIB/MYFTPCMD) and then start the transfer like FTP RMTSYS('ftp.apple.com') and then clear the overrride when the transfer is done. You can also put the password next to the user ID separated by a space in the command file like "JOEUSER JOES4PW", which will automate your last step, with the drawback of having a plaintext password kicking around in a file. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This is the Midrange System Mailing List! To submit a new message, * * send your mail to "MIDRANGE-L@midrange.com". To unsubscribe from * * this list send email to MAJORDOMO@midrange.com and specify * * 'unsubscribe MIDRANGE-L' in the body of your message. Questions * * should be directed to the list owner / operator: david@midrange.com * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.