|
The AS/400 command has two optional files. They are called INPUT and OUTPUT.
The purpose of INPUT is to send a series of FTP subcommands. Here is an email
I keep around:
----------
From: phcoffin[SMTP:MIDRANGE-L@midrange.com]
Sent: Monday, July 28, 1997 5:02 PM
To: ROB; midrange-l
Subject: Batch FTP
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 problem being, 'How do I
automate the receiving of files to my AS/400 from the Internet?'
...
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.
athaines@creativefoam.com on 08/14/98 10:04:21 AM
Please respond to MIDRANGE-L@midrange.com@Internet
To: MIDRANGE-L@midrange.com@Internet
cc:
Subject: FTP file transfer from a CL Pgm
OK, I think this should be and easy one.
Is it posible to initiate a file transfer between two AS/400s uses an FTP
command inside a submitted CL prg? How do I account for the USER ID and
PASSWORD? I'm trying to automate the transfer as much as posible. Currently
we are using the Broderick file transfer programs to send the files and it
seems to be working just fine. We also need to submit a job on the remote
system after the file is sent. is there a command for that as well? I just
thought it would be nice to utilize the speed of our TCP/IP connection between
the two systems. Does anyone have some working samples they would like to
share?
------------------------------------------------
Tony Haines
Administrator IS Operations
Creative Foam Corporation
Fenton, Michigan
+---
| 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.