The STYLE keyword selects the report style to be used, overriding any other style selection methods.
Each line of a report falls into one of the following classifications: Heading, Column heading, Detail, Subtotal, Total, Footing, Other.
Report styles allow users to attribute each of these classifications a colour for a displayed report or a font weight for a report directed to a PCL printer. An additional style, Exit, is used to determine how the screen is left on exit from the query processor. If this is absent, the query processor sends the terminfo sgr0 code to turn off all display attributes.
Report styles are defined using an X-type record in either the dictionary or the VOC where fields 2 onwards consist of a line classification, foreground colour, background colour and font weight in the form:
Only the first character of the line classification name is used. Thus the above line could be written as
The colour names are taken from the following list:
Black, Blue, Green, Cyan, Red, Magenta, Brown, White, Grey, Bright Blue, Bright Green, Bright Cyan, Bright Red, Bright Magenta, Yellow, Bright White
Any non-alphabetic characters are ignored. Thus Bright Green can also be written as, for example, Bright.Green, Bright-Green or BrightGreen. Numeric colour values of 0 to 15 can be used where these correspond to the order of the colour names above.
Note that the colour palette used by AccuTerm may need to be amended from its default settings to improve the rendering of the non-bright colours.
Font weights are taken from the list defined in SYSCOM $PCLDATA which defaults to:
Ultra-Thin, Extra-Thin, Thin, Extra-Light, Light, Demi-Light, Semi-Light, Medium, Semi-Bold, Demi-Bold, Bold, Extra-Bold, Black, Extra-Black, Ultra-Black
Any non-alphabetic characters are ignored in the same way as for colour names. Numeric font weight values in the range -7 to +7 can be used where these correspond to the order of the font weight names above.
All components of a style definition are case insensitive.
Any classification not defined in the style record, or any omitted component within a classification, takes on the values of the Other classification which itself defaults to White foreground, Black background, Medium font weight if not defined.
When the DET.SUP keyword is used, subtotals are reported using the detail line style.
Style selection uses the following sequence:
1.Use of the STYLE option on the command line to reference a VOC record
2.The optional $STYLE dictionary record
3.A style set for the print unit using the STYLE option of SETPTR
4.A default style set using REPORT.STYLE
In this example, headings are displayed with bright blue foreground colour and the default background colour. When sent to a PCL printer, the headings will be in bold face. Subtotals are displayed in blue, using the default background colour and printer font weight. Totals are displayed with bright red foreground colour and the default background colour, using bold face when printed.