0

我试图从 AS/400 服务器下载库的 SAVEFILE。我总是得到一个 0 字节的空文件,

这些是我遵循的步骤

    Go to a MS-DOS Shell.
Go to the location on the PC where you want to store the save file.
Type:

FTP (AS/400_IP_ADDRESS)

Or

FTP (AS/400 _NAME)
Enter your AS/400 username and password for that system when prompted.
To ensure the transfer mode is binary (there will be no conversion), type:

BIN
To go to the library on the AS/400 where the save file is stored, type:

CD LIBRARY
To transfer the save file from the AS/400 to your PC, type:

GET NAME
When the transfer is complete, exit the ftp session by typing:

QUIT
To close the MS-DOS shell, type:

EXIT

在 as400 端我可以看到文件大小是 24576 字节

FTP 提示返回“226 文件传输成功”。

但文件是空的。

任何原因 ?

4

3 回答 3

0

最简单的方法是:

ftp ip地址

垃圾桶

获取 LIBARY/SAVF SAVF(这只是告诉它在 tmp 中删除同名文件)

退出

于 2013-03-21T21:05:27.063 回答
0

与其使用 FTP GET 上的库列表,不如指定保存文件所在的库。例如,如果您SAVLIB ... SAVF(TESTLIB/MYSAVF)在 FTP GET 命令上执行了 then,请指定GET TESTLIB/MYSAVF. 如果这没有帮助,请更新您的问题以显示您用于创建保存文件并将其通过 FTP 关闭的确切步骤。

于 2013-03-21T15:24:55.397 回答
0

我们总是首先创建空 savf。

在 FTP 中,进入 BINARY 模式。CD 和 LCD,根据需要更改远程和本地当前目录。如果需要,更改 NAMFMT。

如果您没有更改本地目录,则该文件可能会转到其他地方,您没有在其中查找。

于 2013-03-21T10:55:48.267 回答