[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
TESTPUT NAMEFMT 1
Sender: hr@xxxxxxxxx
Hi,
I'm trying to test the FTPAPI and the TESTGET was succesfull
and downloaded the fips.exe file in the root directory on my
iSeries
HR 36864 30-09-04 15:57:19 *DIR pdfarchive/
HR 172096 30-09-04 17:11:09 *STMF fips.exe
HR 9855577 27-09-04 15:33:23 *STMF quickreference.pdf
Then I tried to make at TESTPUT after changing the program to
log on to my own server in order to make a copy of the file
callp ftp_binary(*on)
if ftp_put(sess: '/fips.exe': '/fips2.exe')<0
eval Msg = ftp_error
dsply Msg
endif
CALL W600LIB/TESTPUT
220-QTCP at DKEDBS01.COMMON.DK.
220 Connection will close if idle more than 5 minutes.
> USER hr
331 Enter password.
> PASS **********
230 HR logged on.
DSPLY No such path or directory.
DSPLY No such path or directory.
The copy from file couldn't be found, so I the tried to
make the copy with the IBM/FTP command ....
Connecting to remote host 192.168.90.100 using port 21.
220-QTCP at DKEDBS01.COMMON.DK.
220 Connection will close if idle more than 5 minutes.
hr
331 Enter password.
230 HR logged on.
OS/400 is the remote operating system. The TCP/IP version is "V5R1M0".
250 Now using naming format "1".
257 "/" is current directory.
bin
200 Representation type is binary IMAGE.
put /fips.exe /fips2.exe
File name format not valid. Use the format: library/file.member or
file.member.
put fips.exe /fips2.exe
File FIPS in library W600LIB not found.
namefmt 1
250 Now using naming format "1".
Server NAMEFMT is 1.
Client NAMEFMT is 1.
put /fips.exe /fips2.exe
227 Entering Passive Mode (192,168,90,100,35,25).
150 Sending file to /fips2.exe
250 File transfer completed successfully.
172096 bytes transferred in 0.010 seconds. Transfer rate 17622.631 KB/sec.
My problem is now, how do I run the NAMEFMT 1 command in the FTPAPI, if I
run the FTP_namfmt it run SITE NAMEFMT 1 that only applies to the server's
nameformat and not the client.
I have tried to change the command in the API but it then returns NAME
command not found and a FTP-quote NAMEFMT 1 has no effect ...
can anybody help ???
regards
Henrik
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------