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



Emmanuel

How do you want this to work? Can the FTP transfer occur right after putting the file in the IFS? If so, you can build an FTP script to handle this.

You need to build the script (I used Query Management query to replace lines in a shell, using substitution variables for the password and filename), something like this and modified to your needs:

&userid &password
nam 1
lcd &localpath
cd &remotepath
bin
put &localfilename [&remotefilename]
quit

The script can be a single-field data physical or a source physical.

    Note: Depending on the remote FTP server, the &userid and
        &password may need to be on separate lines.

    Note: There is a security issue, because the password and user
        ID are exposed. It might be a good idea to use anonymous login
        at the remote FTP server, with appropriate directory restrictions
        there.

Then run the following - the override of OUTPUT gives you a printout of the results.

/* Execute FTP script */
             OVRDBF     FILE(INPUT) TOFILE(QTEMP/FTPSCRIPT)
             OVRPRTF    FILE(OUTPUT) TOFILE(QPRINT)
             FTP        RMTSYS(&IPADDR)
             DLTOVR     FILE(INPUT OUTPUT)

HTH

Vern

At 01:50 PM 3/11/2003 +0000, you wrote:
MC Hi,

We are generating stream files in an IFS directory and we want to FTP the
stream files to the RS 6000. The process will be constant, therefore I am
looking for a batch processing that would allow us to achieve that.

Regards,
Emmanuel Zannis
(Tel:  01252 372000 x3262
 Fax: 01252 542261
 e-mail:emmanuel.zannis@xxxxxxxxxxx



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.