× 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.



Buzz,

FTP would be the solution to go to as the Qshell as far as I am aware does
not have FTP capability. Also Qshell is EBCIDIC based rather than ASCII
therefore if you are not carefull the files will auto translate into
EBCIDIC.(Although their are ways round this)

To FTP from within CL you can utilise the following

OVRDBF     FILE(INPUT) TOFILE(ftpcmds)                  - use a physical
file to contain FTP script
OVRDBF     FILE(OUTPUT) TOFILE(FTPLOG) MBR(FTPLOG)              - use
physical file to contain FTP log
                                                       
FTP        RMTSYS('192.168.36.1')                               - IP address
of destination           


example of Physical file containing FTP script (non IFS going to Unix box)

user password                                                           -
log in info ontoremote box
ascii                                 
cd /usr/spool/uucppublic/uuboi/nwest  
put autoprod/NATRS1PM irptra                                    
close                                                                 

example of Physical file containing FTP script (using IFS , getting file
from IFS and placing onto unix box)
user   password                                                    
BINARY

NAMEFMT 1                                                       - allows IFS
to be accessed via FTP                     
PUT /QDLS/LOYALTY/20030925/CONTENTS.TXT   file.dat               
CLOSE



Hope this helps

Steven Gray
Senior Analyst
ARVAL PHH



message: 10
date: Thu, 25 Sep 2003 10:36:04 -0500
from: "Buzz Fenner" <bfenner@xxxxxxxxxxxxxxxx>
subject: Copy files from Unix box to IFS

I'm needing to write a procedure that can be scheduled to run at night that
copies e-mail backup files from a combo e-mail server/firewall (it has no
command interface) to a folder on the IFS.  A new folder will have to be
created each week for the seven daily backup files.  I have no experience
with FTP and was beginning to take a look at Qshell.  I'm open to
suggestions that will get me pointed in the right direction and I would like
it to be a program/procedure that executes on the AS/400 (v5r2m0).

Buzz Fenner
Systems Analyst/Network Administrator
Phone: 870.930.3374
Fax: 870.930.3376
bfenner@xxxxxxxxxxxxxxxx

_____________________________________________________________________
This e-mail has been scanned for viruses by MCI's Internet Managed Scanning 
Services - powered by MessageLabs. For further information visit 
http://www.mci.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.