■前言
和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客户端不支持时,使用此子命令。