2013-03-21 68 views
0

我試圖從AS/400服務器下載庫的SAVEFILE。 我總是得到一個空文件,該文件是0字節,通過FTP從AS/400 GET保存文件空文件

這些都是我在AS400邊跟着

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 

我可以看到文件大小爲24576個字節

FTP迅速返回「226文件的步驟轉讓成功完成。「

但文件爲空。

有什麼理由?

+0

您究竟執行了哪些步驟? – WarrenT 2013-03-21 10:45:01

回答

0

我們總是先創建空的savf。

在FTP中,進入BINARY模式。 CD和LCD,根據需要更改本地當前目錄的遠程&。 如果需要,更改NAMFMT。

如果您沒有更改本地目錄,那麼可能是文件到了其他地方,您沒有看到的地方。

0

而不是使用您的FTP GET的庫列表,指定保存文件所在的庫。例如,如果您執行了SAVLIB ... SAVF(TESTLIB/MYSAVF)然後在FTP GET命令,指定GET TESTLIB/MYSAVF。如果這沒有幫助,請更新您的問題以顯示您用於創建保存文件並將其關閉的確切步驟。

0

最簡單的方法是:

FTP ip地址

GET LIBARY/SAVF SAVF(這只是告訴它的文件具有相同名稱滴在TMP)

退出