[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Can't get TESTPUT to work
Sender: Scott Klement <sk@xxxxxxxxxxxxxxxx>
FTPAPI does not understand "library/object" type filenames for files on
it's side of the connection. You can use "library/object" style names for
the remote side, since the server understands them, but not for the local
side. Try the following:
ftp_put(sess: 'WCROWE/PTLTEST':
'/QSYS.LIB/WCROWE.LIB/PTL.FILE/PTL.MBR')
On Fri, 19 Mar 2004 wcrowe@xxxxxxx wrote:
>
> I am trying to get the TESTPUT program to work, but I keep getting the
> error message "No such path or directory." I am trying to send the a
> file in library WCROWE named PTL. I am sending it to LOCALHOST (right
> back to originating AS400) and giving it the name PTLTEST in the same
> library. According to the log TESTPUT signs on OK, so I know I am
> making a good connection to the FTP server.
>
> The code in TESTPUT looks like the following:
>
> c if ftp_put(sess: 'WCROWE/PTLTEST': 'WCROWE/PTL')<0
>
> I am on V5R2.
>
>
>
>
>
>
>
>
>
> -----------------------------------------------------------------------
> This is the FTPAPI mailing list. To unsubsribe from the list send mail
> to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
> -----------------------------------------------------------------------
>
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------