PRINTER_TITLE Statement
Purpose
Use the PRINTER_TITLE statement to specify the printed output classes that are to contain classification titles. CP prints classification titles on the output separator page and, optionally, at the top or bottom of each page of output. You can specify a different classification title for each class of output (A through Z and 0 through 9).
How to Specify
Include as many statements as needed; they are optional. You can place PRINTER_TITLE statements anywhere in the system configuration file. If you specify more than one statement with the same class, the last statement overrides any previous specifications.
If you omit the PRINTER_TITLE statement, CP does not print any classification titles.
Operands
- class
- is a 1-character alphanumeric string specifying the spool file class.
- string
- is a classification title for this class. It may be up to 46 characters long, and must be
enclosed in single or double quotation marks unless it is a single word entered with no imbedded
blanks, in which case the entire word will be capitalized.
If you need to include a single quotation mark in the title, enclose the whole string with double quotation marks. If you need to include a double quotation mark in the title, enclose the whole string with single quotation marks. Also, you may use two consecutive double quotation marks ("") to represent a " character within a string delimited by double quotation marks. Similarly, you may use two consecutive single quotation marks ('') to represent a ' character within a string delimited by single quotation marks.
- BOTtom
- tells CP that this title is to be printed both on the separator page and at the bottom of each page of output.
- TOP
- tells CP that this title is to be printed both on the separator page and at the top of each page of output.
Usage Notes
- CP inserts the title line at the top or bottom of each page. To do this, CP inserts a CCW to
print one space, followed by the title line before or after each skip to channel 1 CCW issued by the
operating system running in the virtual machine printing the file. Inserting the title lines this
way means that:
- CP inserts the titles as the file is created. Later, if you change the file to a different class, CP does not change the titles in the file. However, the title on the separator page always reflects the true class of the file.
- Inserting the title on the output page adds a line of output to the printed page. If the virtual machine application is counting lines, its count will be incorrect. Thus, the output listing may contain blank pages.
- If the operating system running in the virtual machine printing the file does not use skip to channel 1, the title lines are never printed.
Examples
- To define four printer classes as follows:
- Class A has the title
No Security Rating
printed at the bottom of each page and on the separator pages - Class C has the title
COMPANY XYZ CONFIDENTIAL
printed at the top of each page and on the separator pages - Class Q has the title
It's not Confidential
printed on the separator pages - Class X has the title
Contents aren't Confidential
printed on the separator pages
use the following PRINTER_TITLE statements:/*---------------------------------------------------------------------*/ /* Setting up Printer Titles */ /* ------------------------- */ /* /* Class A printer files get "No Security Rating" printed on the */ /* bottom of each page and on the separator pages */ /* Class C printer files get "COMPANY XYZ CONFIDENTIAL" printed at */ /* the top of each page and on the separator pages */ /* Class Q printer files get "It's Not Confidential" printed at */ /* the top of each page and on the separator pages */ /* Class X printer files get "Contents aren't Confidential" printed */ /* at the top of each page and on the separator pages */ /*---------------------------------------------------------------------*/ Printer_Title A 'No Security Rating' Bottom Printer_Title C 'COMPANY XYZ CONFIDENTIAL' Top Printer_Title Q 'It''s Not Confidential' Printer_Title X "Contents aren't Confidential" - Class A has the title
