TYPE

Read syntax diagramSkip visual syntax diagram TYpe AIBB OptionsEF1
B Options
Read syntax diagramSkip visual syntax diagram123AR4AR567

Purpose

Use the TYPE subcommand to set the file transfer type (the data representation for the transfer). FTP supports the ASCII, EBCDIC, Image (binary), and Kanji file transfer types.

Operands

A
Sets the transfer type as ASCII, which is intended for use when text files are transferred to or from an ASCII host. When FTP sessions are established, ASCII is the default transfer type. The TYPE A subcommand has a similar effect as the ASCII subcommand, but it does not alter the record format used to store local files.
I
Sets the transfer type as Image (or, binary), which is intended for use when binary data is transferred or when the efficient storage and retrieval of files is desired. With the Image transfer type, data is sent as contiguous bits, packed into 8-bit bytes. The TYPE I subcommand has a similar effect as the BINARY subcommand, but it does not alter the record format used to store local files.
Note: A transfer type of Image must be used when automatic file translation (performed by a z/VM FTP server) is desired.
B
Sets the transfer type as DBCS Kanji, Hangeul, or Traditional Chinese. Specifying the B transfer type with the appropriate options has the same effect as using the EUCKANJI, HANGEUL, JIS78KJ, JIS83KJ, KSC5601, SJISKANJI or TCHINESE subcommands. The options provide further DBCS information. For more information about DBCS support for FTP, see Using DBCS with FTP and Mail.
E
Sets the transfer type as EBCDIC. Specifying the EBCDIC transfer type has the same effect as using the EBCDIC subcommand. The EBCDIC transfer type is intended for efficient transfer between hosts that use EBCDIC for their internal character representation.
F
Sets the transfer type as EBCDIC IBM® Kanji. Specifying the IBM Kanji transfer type has the same effect as using the IBMKANJI subcommand. For more information about DBCS support for FTP, see Using DBCS with FTP and Mail.

Usage Notes

  • For a z/VM foreign host where the FTP server has been configured to perform automatic file translation, the TYPE I subcommand has no effect on file translation — the server continues to determine whether EBCDIC-ASCII translation should occur based only on file extension.

    To enable or disable automatic file translation for files transferred using the Image transfer type, use the AUTOTRANS operand of the SITE subcommand. For more information, see SITE.

  • For more information about file transfer methods, see Table 1.