Hi

We have an existing process that will use FTP script to upload the iSeries
physical file in QSYS.LIB/XXXX.LIB to the remote server. Now we are
planning to change the existing process to use SFTP.

We are using QOpensys and using the PUT command to upload the physical
file. But my concern is, the following command fails when the physical file
not already available on the remote server when i was using SFTP. The same
command works fine when i run this on FTP protocol.

put /QSYS.lib/EVENTS.lib/ASGTRESP.file/M000028373.mbr/*.MBR
/QSYS.LIB/EVENTS.LIB/RA02600001.FILE/RA02600001.MBR/*.MBR

Error: open("/QSYS.LIB/EVENTS.LIB/RA02600001.FILE/RA02600001.MBR"): No
such file or directory".

There is no issue with the above command when the destination file is
already available at the remote location.


how can i use PUT command, so that it can create the file automatically
when it's not already at remote location?

why is the same command creating the file successfully at the remote
location if i use FTP instead of SFTP? why its fail in SFTP?

Please help me.

Regards
Manoj





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