z/OS TSO/E Customization
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Format of transmitted data

z/OS TSO/E Customization
SA32-0976-00

Files sent using the TRANSMIT command contain: control records, data records, and a trailer record (a special type of control record). Several control records begin the file. They are followed by data records, and finally a trailer record. An acknowledgment file is composed of only control records.

Data is actually transmitted in card image format (80-byte records). However, the record descriptions that follow are those of ‘logical records’; card boundaries are ignored. Each control record begins in the byte immediately following the end of the previous record. The first data record begins in the byte immediately following the end of the last control record. The trailer control record begins in the byte immediately following the last data record.

Control records and data records have the same format. The records of the file to be transmitted are broken into segments whose format is shown in the next figure. A segment has a maximum length of 255 bytes, including the 2-byte header. If the length of a record in the file is greater than 253 bytes, the record is sent as multiple segments.

Figure 1. Format of control records and data recordsFormat of control records and data records
Byte Length Contents or meaning
0 1 Length of segment, including 2-byte header (length equals 2 to 255)
1 1 Segment descriptor flags:
X'80'
First segment of original record.
X'40'
Last segment of original record.
X'20'
This is (part of) a control record.
X'10'
This is record number of next record.
X'0F'
Reserved
2 n User data segment (n = 0 to 253). Control records have a control record identifier (for example, INMR01) in bytes 2-7. Text units generally begin in byte 8.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014