E. Block Format
BLOCK <---- BLOCKHEAD + (RECORD = r) + ENDOFBLOCK
Here r > 0
=
BLOCKHEAD <-- BCBYTE + [e=0=>CHECK] + DEVBYTE
The Blockhead field consists of a Block Control Byte,
a 32-bit check field CHECK, and a Device Byte.
BCBYTE <---- '1'BIT + e:ERRORCONTROL + b:BLKSEQ
Here BLKSEQ contains a 5-bit modulo 32 block sequence
number b. ERRORCONTROL is a 2 bit field with the
following meanings:
e=0 : Normal block. Contains a (presumably valid)
check field CHECK.
e=1 : Block contains no check field CHECK.
e=2 : Abort channel, initiated by transmitter.
Channels is not closed, transmission restarts
on job-related boundary.
DEVBYTE <---- '1'BIT + n:DEVNO + t:DEVTYPE
This byte identifies a particular remote device, i.e.,
it identifies a stream. DEVTYPE specifies the type of
device, as follows:
t=1: Output to remote operator console.
2: Input from remote operator console.
3: Input from card reader.
4: Output to printer.
5: Output to card punch.
6,7: Unused.
DEVNO is a 3-bit integer which identifies the
particular device type of type t at this remote site.
CHECK <--- '10101111'BYTE + 01010000'BYTE + '11111010'BYTE +
'00000101'BYTE
ENDOFBLOCK<----'0'BYTE
Record Format
RECORD <------ DATA RECORD | JOBNAMERECORD
The first record sent on a printer or punch output channel will be a JOBNAMERECORD, identifying the OS/360 jobname of the job which produced the following output.
DATARECORD <--- '10'BIT2 + DEVCNTRL + (STRING=p) + ENDOFRECORD
JOBNAMERECORD <-- '11000000'BYTE + '11001000'BYTE + JOBNAME +
ENDOFRECORD
JOBNAME <---- (TEXTBYTE = 8)
This is the 8-character OS/360 jobname for the following job.
DEVCNTRL <----- d:BIT2 + k:BIT4
DEVCNTRL specifies carriage control for a printer, so if the device is not a printer then DEVCNTRL should be '000000'. For a printer:
d=0: Space k lines after printing; 0 < k < 3 is allowed.d=2: Immediately space k lines.d=1, k=1: Skip to top of new page after printing.d=3, k=1: Immediately skip to top of new page.
STRING <--- ('100' + i:DUPCOUNT)| This is a string of i
consecutive blanks.
('101' + i:DUPCOUNT + TEXTBYTE)|
This is a string of i consecutive duplicates of
TEXTBYTE.
('11' + j:LENGTH + (TEXTBYTE=j)| This is an
uncompressed string of j characters.
ENDOFRECORD <---- '0'BYTE