|
Your question hits this list about once every month or two. 1) Create your script file. Can be either a physical file, or a source physical file. Sample contents: user actual_userid actual_password cd actual_lib put file.member quit 2) Create a physical file to log messages returned during the session. Sample CRTPF (mylib/logfile) RCDLEN(132) 3) Use the following CL to 'pipe' input and redirect output: OVRDBF INPUT TOFILE(mylib/scriptfile) OVRDBF OUTPUT TOFILE(mylib/logfile) FTP systemname DLTOVR INPUT DLTOVR OUTPUT graftak@gmx.net on 11/12/98 08:33:09 AM Please respond to MIDRANGE-L@midrange.com@Internet To: MIDRANGE-L@midrange.com@Internet cc: Subject: Hi, The problem I have might seem trivial to all you AS-400 guru's out there. How can I automate a transfer via FTP-put from our AS-400 to our UNIX box. Manual FTP works fine, but Red Book 78 (TCP/IP) say's it can be done through FTP-script from whitin a CL program. Since my knowledge of the AS-400 is second to none I beg of you : Is there someone out there who is willing to help me PLEASE ? Rob, ( willing, but not so gifted ) --- Sent through Global Message Exchange - http://www.gmx.net +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +--- +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | 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.