× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: RE: FTP from CL
  • From: "Stone, Brad V (TC)" <bvstone@xxxxxxxxxxxxxx>
  • Date: Thu, 12 Nov 1998 08:36:36 -0600

If you found it in your redbooks, you should have found some pretty good
example on how to do it to.

Here's the basic gist.

Your CL will look somthing like this...

OVRDBF     FILE(INPUT) TOFILE(&PLIB/QFTPSRC) MBR(&MBRI)  
OVRDBF     FILE(OUTPUT) TOFILE(&PLIB/QFTPSRC) MBR(&MBRO) 
FTP        RMTSYS(&IP)                                   
DLTOVR     FILE(INPUT OUTPUT)                    

&PLIB is the library that contains the source physical file QFTPSRC.  &IP is
the IP address or DNS name that you are connecting to.

&MBRI is a member you create which contains the FTP scripts.  It should look
something like this...

username password                      
ascii                                                                
cd /home/ftp/guest                  
put spanky.txt   
close                                   
quit                 

&MBRO is an output file that is created by the system that contains the
informational message sent by the FTP job.  

The only "gotcha" that I have run across is that if you are going to submit
the CL program that runs the FTP command to batch, it must be compiled to
used the default activation group (this only applies if your CL program is
type CLLE).
                   
Bradley V. Stone
Taylor Corporation - OASIS Programmer/Analyst   
bvstone@taylorcorp.com
Phone: 1-507-625-6464 x3147
Fax: 1-507-625-8937




> -----Original Message-----
> From: R.L.J.T.Heijden [SMTP:graftak@gmx.net]
> Sent: Thursday, November 12, 1998 6:58 AM
> To:   MIDRANGE-L@midrange.com
> 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 thread ...

Follow-Ups:

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.