You can also create commands that will let you run the FTP commands on 
     the fly and in batch.  The source member option works great for a very 
     static, predicatble transfer.  The command could be more helpful for 
     ad-hoc, miscellaneous transfers.  I've done a couple of simple ones 
     that have helped us out a lot.
     
     Mark Stepan
     Merrill/May
     St Cloud, Minnesota USA


______________________________ Reply Separator _________________________________
Subject: Internet EDI with the AS/400
Author:  "Rob Berendt" <ROB@dekko.com> at vpn
Date:    07/28/1997 10:18 AM


Internet EDI seems to be a big push right now.  I've been doing some   
preliminary work into this.  I figure, in this case, Internet=FTP right? 
I have fired up FTP on one AS/400 and was able to get into   
ftp.microsoft.com.  Then the problem of how to automatically enter the   
FTP commands got to me.  I thought of DOS piping.  I figured that if I   
can do it in DOS then I can see if it is feasible with FTP at all.  I   
created the following file:
     
 -FTP.CMD-
user
password
bin
put file.dat mylibrary/myfile
quit
     
Then I ran the following at the DOS prompt: 
type ftp.cmd | ftp ftpsite
where ftpsite is the name of my AS/400.
I believe the user was piped successfully.  I still entered the password,   
got one bad command message, and then it ran until completion.
     
I changed the file to:
     
 -FTP.CMD-
user
bin
put file.dat mylibrary/myfile
quit
     
and again ran
type ftp.cmd | ftp ftpsite
     
I still had to enter the password, but no longer got the bad command   
message.  This having to enter the password happens at any ftp site, for   
instance ftp.microsoft.com.
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?  
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
* 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   * 
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* 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 thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.