Alters printer parameters at run time.
ALTER-PRINTER [POINT-SIZE={point_size_num_lit|_var}] [FONT-TYPE={font_type|txt_var}] [SYMBOL-SET={symbol_set_id|txt_var}] [FONT={font_int_lit|_var}] [PITCH={pitch_num_lit|_var}]
POINT-SIZE
New font point size.
FONT-TYPE
New font type. (PROPORTIONAL or FIXED)
SYMBOL-SET
New symbol set identifier.
FONT
New font as a number. (For example, 3 = Courier and 4 = Helvetica.)
PITCH
New pitch in characters per inch.
See Table 32, DECLARE-PRINTER Command Arguments for more information on ALTER‑PRINTER arguments.
You can place ALTER-PRINTER in any part of an Production Reporting program except the SETUP section.
ALTER-PRINTER changes the attributes of the current printer for the current report. Attributes that do not apply to the current printer, are ignored. For example, ALTER‑PRINTER is ignored if it specifies proportional fonts for a report printed on a line printer. When a program creates multiple reports and shares the printer with another report, the attributes are changed for that report as well.
Change the font and symbol set for the current printer.
alter-printer font=4 ! Helvetica symbol-set=12U ! PC-850 Multilingual
If the output prints to a PostScript printer, SYMBOL-SET ignored; however, if the SPF file is kept (see the -KEEP command line flag) and later printed on an HP LaserJet, the symbol set 12U can be used.