|
Create a CL and two text files - FTPCL, FTPCMDS, FTPOUT. The CL PGM OVRDBF FILE(INPUT) TOFILE(FTPCMDS) MBR(FTPCMDS) OVRDBF FILE(OUTPUT) TOFILE(FTPOUT) FTP RMTSYS(*INTNETADR) INTNETADR('##.#.###.###') ENDPGM FTPCMDS is a physical file (or text file if your like) containing your commands below sans the open statement. Place the user name and password on the first line. Example: USER PASSWORD cd/qdls/folder etc. etc. FTPOUT is your output log. It is a physical or text file. HTH Eric Kempter CommAir Mechanical Services, Inc. -----Original Message----- From: Bob Clark [SMTP:bclark@ussafety.com] Sent: Monday, December 14, 1998 12:50 PM To: Midrange-L Subject: FTP scripting This might be a little off topic but here goes. I am trying to automate the download of some files from the AS/400 using FTP. I chose FTP because I don't see the need to chew up a Client Access license for this application. I am having problems logging on to the AS/400 FTP server using a text file as a script. I keep getting invalid command messages when I attempt to use the USER and PASS subcommands. I have tried this using the Windows NT 4.0 FTP client as well the Windows '95 client. the script looks something like this: open 254.254.254.254 USER user PASS password cd/qdls/folder lcd f:\directory get test.txt quit Can anybody tell me where I am going wrong? << File: bclark.vcf >> +--- | 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-2024 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.