FTP 中 「quote type b 1」的含義

■前言

和IBM大機 mainframe 有關的操作(連接大機中的FTP服務)

大機端 文件編碼 EBCDIC 

   https://blog.csdn.net/chy555chy/article/details/52065250

 

■含義

使用「quote type b 1」命令之後

FTP服務器將其傳輸類型更改爲Shift-JIS-kanji
而不更改FTP客戶端中的傳輸類型。

(就是說,對get有效,對put無效)

 

■具體使用

https://blog.csdn.net/sxzlc/article/details/106504325

 

■相關根據

https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.1.0/com.ibm.zos.v2r1.halu001/quote.htm

 

■原文

Parameters
string
Specifies the data to be sent verbatim to the remote host FTP server.
Examples
For example, QUOTE TYPE B 1 causes the FTP server to change its transfer type to Shift JIS kanji, 
without changing the transfer type in the FTP client. 
The client in this example should be set to the ASCII transfer type before the QUOte subcommand is issued.
The following example shows the screen display when setting the DBCS transfer type to JIS78KJ, shift-in JISROMAN, 
and then setting it to HANGEUL using EBCDIC SO/SI characters. 
The example shows an MVS™ TCP/IP FTP client connected to an MVS TCP/IP FTP server. 
All three methods of setting the DBCS transfer type are shown.

  User:  jis78kj (jisroman
System:    >>>TYPE b 4 r
           200-Representation type is kanji JIS 1978 shift-in JISROMAN
           200 Standard DBCS control used
           Command:
  User:  type b 4 r
System:    >>>TYPE b 4 r
           200-Representation type is kanji JIS 1978 shift-in JISROMAN
           200 Standard DBCS control used
           Command:
  User:  jis78kj (jisroman notype
System:    Command:
  User:  quote type b 4 r
System:    >>>type b 4 r
           200-Representation type is kanji JIS 1978 shift-in JISROMAN
           200 Standard DBCS control used
           Command:
  User:  hangeul (sosi ebcdic
System:    >>>TYPE b 5 s e
           200-Representation type is Hangeul
           200-SO/SI characters X'0E'/X'0F' used
           200 Data transfer is mixed SBCS/DBCS
           Command:
  User:  type b 5 s e
System:    >>>TYPE b 5 s e
           200-Representation type is Hangeul
           200-SO/SI characters X'0E'/X'0F' used
           200 Data transfer is mixed SBCS/DBCS
           Command:
  User:  hangeul (sosi ebcdic notype
System:    Command:
  User:  quote type b 5 s e
System:    >>>type b 5 s e
           200-Representation type is Hangeul
           200-SO/SI characters X'0E'/X'0F' used
           200 Data transfer is mixed SBCS/DBCS
           Command:
Usage
No parsing or validity checking is performed on the character string you enter by FTP on your local host. 
If the character string you send to the FTP server is part of a required sequence of commands, 
you are required to provide this sequence correctly, or the results are unpredictable.
The QUOte subcommand can be used to generate any of the DBCS TYpe commands supported by the server. 
This subcommand is used when the FTP server supports the DBCS TYpe command, but the FTP client does not.

 

■翻譯 (直接網上軟件翻譯的,湊付者看吧。。。)

參數
一串
指定要逐字發送到遠程主機FTP服務器的數據。
實例
例如, 「quote type b 1」 導致FTP服務器將其傳輸類型更改爲Shift-JIS-kanji,
而不更改FTP客戶端中的傳輸類型。
在發出quote子命令之前,此示例中的客戶端應設置爲ASCII傳輸類型。

下面的示例顯示了在將DBCS傳輸類型設置爲JIS78KJ、在jisraman中移位,然後使用EBCDIC SO/SI字符將其設置爲HANGEUL時的屏幕顯示。該示例顯示了一個MVS™ 連接到MVS TCP/IP FTP服務器的TCP/IP FTP客戶端。顯示了設置DBCS傳輸類型的所有三種方法。

用戶:jis78kj(jisraman
系統:>>>b 4 r型
200表示類型是漢字JIS 1978在jisraman中的移位
使用200個標準DBCS控件
命令:
用戶:b 4 r型
系統:>>>b 4 r型
200表示類型是漢字JIS 1978在jisraman中的移位
使用200個標準DBCS控件
命令:
用戶:jis78kj(jisraman notype
系統:命令:
用戶:報價類型b 4 r
系統:>>>b 4 r型
200表示類型是漢字JIS 1978在jisraman中的移位
使用200個標準DBCS控件
命令:
用戶:hangeul(sosi ebcdic
系統:>>>b 5 s e型
200表示類型爲Hangeul
使用200-SO/SI字符X'0E'/X'0F'
200個數據傳輸是混合的SBCS/DBCS
命令:
用戶:b 5 s e型
系統:>>>b 5 s e型
200表示類型爲Hangeul
使用200-SO/SI字符X'0E'/X'0F'
200個數據傳輸是混合的SBCS/DBCS
命令:
用戶:hangeul(sosi ebcdic notype
系統:命令:
用戶:報價類型b 5 s e
系統:>>>b 5 s e型
200表示類型爲Hangeul
使用200-SO/SI字符X'0E'/X'0F'
200個數據傳輸是混合的SBCS/DBCS
命令:
用法

在本地主機上,不會對FTP輸入的字符串執行解析或有效性檢查。
如果發送到FTP服務器的字符串是所需命令序列的一部分,
則需要正確提供該序列,否則結果將不可預測。
QUOte子命令可用於生成服務器支持的任何DBCS類型的命令。
當FTP服務器支持DBCS TYpe命令,但FTP客戶端不支持時,使用此子命令。

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章