Printout Spool Control Block (PSCB)

The Printout Spool Control Block (PSCB) is a working storage area in the application program containing the information Com-plete needs to control the processing of printout spool function requests. The format and content of the PSCB follow:

Location Length Format Contents
Dec Hex
0 0 2 None Reserved. Must be initialized to spaces.
2 2 2 Binary Reserved. Used by Com-plete to contain the printout spool identification number. Must be initialized to zeros.
4 4 2 Binary Printout spool class codes indicated as a binary halfword bit map.
6 6 2 Binary Logical output statement length (record length).
8 8 4 Character Constant: EXT1
12 C 8 Character Listname before Open.
12 C 4 Binary Address of MCQ after Open.
20 14 4 Character Form-ID.
24 18 1 Character Disposition of printout:
D Print and delete after print.
H Hold printout until release.
L Print and hold after print.
25 19 1 Binary Reserved
26 1A 8 Character Output logical driver name.
34 22 1 Binary Number of additional copies.
35 23 5 None Reserved.

The class codes specified in the PSCB are defined as bit settings in the halfword located at relative offset four. The following table details the bit settings associated with specific class codes:

 

BIT POSITIONS

Class Code 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
1 . . . . . . . . . . . . . . . 1
2 . . . . . . . . . . . . . . 1 .
3 . . . . . . . . . . . . . 1 . .
4 . . . . . . . . . . . . 1 . . .
5 . . . . . . . . . . . 1 . . . .
6 . . . . . . . . . . 1 . . . . .
7 . . . . . . . . . 1 . . . . . .
8 . . . . . . . . 1 . . . . . . .
9 . . . . . . . 1 . . . . . . . .
10 . . . . . . 1 . . . . . . . . .
11 . . . . . 1 . . . . . . . . . .
12 . . . . 1 . . . . . . . . . . .
13 . . . 1 . . . . . . . . . . . .
14 . . 1 . . . . . . . . . . . . .
15 . 1 . . . . . . . . . . . . . .
16 1 . . . . . . . . . . . . . . .

Copy code for the PSCB is provided in the Com-plete source library: COBPSCB for COBOL, and PL1PSCB for PL/I.