打印文件类型
- “Print File-ASCII”和“EBCDIC Print File”类型的规定有误(RFC 354 第 10 页和第 11 页)。打印文件的真正问题在于 ASA(Fortran)垂直格式控制。与其设两种打印文件类型, 实际上应设三种类型, 如下所述:
BCDIC - The sender transfers data using the EBCDIC
character code and 8-bit transfer byte size.
The _CRLF_ convention is used for vertical format
control. This type will be used for efficient
transfer of EBCDIC files between systems which
use EBCDIC for their internal character
representation.
ASCII with ASA vertical format Control - This is the
"Print file-ASCII" defined in RFC 354. The
server is to transform the data in accordance
with ASA (Fortran) vertical format control
procedures for printing on printers that
still use this standard. The data is to be
transferred as 8-bit bytes.
EBCDIC with ASA vertical format control - This is the
EBCDIC Print File defined in RFC 354. The
server is to transform the data in accordance
with ASA (Fortran) vertical format control
standards but using the EBCDIC character code.
The data is to be transferred in 8-bit bytes.
新类型用符号表示: E 表示 EBCDIC, P 表示 Print file-ASCII, F 表示格式化(ASA 标准)的 EBCDIC 打印文件。关于 ASA 垂直格式控制的讨论见 NWG/RFC 189 附录 C, 以及 Communications of the ACM, Vol 7, No. 10, p. 606, October 1964。按照 ASA 垂直格式控制标准, 格式化记录的第一个字符不打印, 而是决定垂直间距, 具体如下:
Character Vertical Spacing before printing
--------- --------------------------------
Blank One line
0 Two lines
1 To first line of next page
+ No advance
除上述四个字符之外, 还有更多字符(定义于 RFC 189 附录 C), 它们代表 IBM 对 ASA 标准的扩展。