Skip to main content

3B.1 Data Types

The 'set data type' control transaction identifies the structure of data (data type and byte size) in succeeding data transactions. The 'set data type' transaction shall contain two more bytes in addition to the opcode byte. The first of these bytes shall convey a data type or code information and the second byte may convey the data byte size, where applicable. This information may be used to define the manner in which data is to be parsed, interpreted, reconfigured or stored. Set data type need be sent only when structure of data is changed from the preceding.

Although, a number of data types are defined, specific implementations may handle only limited data types or completely ignore the data type and byte size descriptors. Even if a host process does not "recognize" a data type, it must accept data (i.e., there is no such thing as data type error.) These descriptors are provided only for convenience, and it is not essential that they be used. The standard default is to assume nothing about the information and treat it as a bit stream (binary data, byte size 1) (*) whose interpretation is left to a higher level process, or the user.

The following data type codes are currently assigned. Where a byte size is not implicit in data type, it may be provided by the second byte.

  Code          Implicit          Data Type
Hex Octal Byte Size

00 000 1 Bit stream (standard default)

01 001 none Binary data bytes

02 002 8 Network ASCII characters

03 003 8 EBCDIC characters

04 004 36 DEC-packed ASCII (five 7-bit
characters, 36th bit 1 or 0)

05 005 8 Decimal numbers, net. ASCII

06 006 8 Octal numbers, net. ASCII

07 007 8 Hexadecimal numbers, net. ASCII

08 010
through through Reserved for standard assignment
4F 077

5A 100
through through Assigned for experimental use
FF 377

(*) It is, however, possible that this bit stream is treated like ASCII characters in specific instances such as transmitting a file to a line printer.