SAS System Options under Windows |
Default: | none |
Valid in: | configuration file, SAS invocation, OPTIONS statement, SAS System Options window |
Category: | Log and procedure output control: Procedure output |
PROC OPTIONS GROUP= | LISTCONTROL |
Windows specifics: | all |
See: | SYSPRINTFONT System Option in SAS Language Reference: Dictionary |
Syntax |
-SYSPRINTFONT ("font-name" <BOLD | NORMAL><REGULAR | ITALIC><character-set> <point-size> <NAMED "printer-name" | UPRINT= "printer-name" | DEFAULT | ALL>) |
SYSPRINTFONT="font-name" <BOLD | NORMAL><REGULAR | ITALIC><character-set> <point-size> <NAMED "printer-name" | UPRINT= "printer-name" | DEFAULT | ALL> |
specifies the name of the font to use for printing. This name must be a valid font name (for example, "SAS Monospace" or "Courier") that matches the name of the font as it is installed on your system. The font-name must be enclosed in double quotation marks, and is a required argument.
specifies the character set to use for printing. The default is "Windows". Valid values are Western, Central European, Cyrillic, Greek, Turkish, Arabic, Baltic, and Thai. If the font does not support the specified character set, the default character set is used. If the default character set is not supported by the font, the font's default character set is used.
specifies the point size to use for printing. This value must be an integer from 1 to 7200, inclusive. If you omit this argument, SAS uses 10 points.
updates the font information for the named printer in the Sasuser.Profile2 catalog. The printer name must exactly match the name shown in the Print Setup dialog box (except that the printer name is not case sensitive). The printer-name must be enclosed in double quotation marks. This keyword is optional.
specifies a Universal Printer to which these settings apply. UPRINT is valid only for printers that are listed in the SAS registry. The printer-name must exactly match the name shown in the Print Setup dialog box, except that the printer name is not case sensitive. If the Universal Prints is more than one word, printer-name must be enclosed in single or double quotation marks. The quotation marks are stored with the printer-name.
specifies the default font information for the printer used by the -SYSPRINT system option in the Sasuser.Profile2 catalog.
updates the font information for all installed printers in the Sasuser.Profile2 catalog. This keyword is optional.
Details |
The SYSPRINTFONT system option sets the font to use when SAS is printing to the current default printer (which might be specified in the SYSPRINT system option) or to the printer identified with the optional keywords NAMED or ALL. This information is stored in the Sasuser.Profile2 catalog.
Enclose the SYSPRINTFONT option arguments in parenthesis when you specify the option in a configuration file, on the command line, or in the SAS System Options window. Parenthesis are not required if you specify the SYSPRINTFONT system option in the OPTIONS statement.
If you use SYSPRINTFONT with either the DEFAULT or no keyword and later use the SYSPRINT system option or the Print Setup dialog box to change the current default printer, then the font used with the current default printer will be
The font specified in Sasuser.Profile2 for the given printer, if any.
The font specified with SYSPRINTFONT, if the specified font exists on the printer.
If there is no font defined for the printer in Sasuser.Profile2, and SYSPRINTFONT doesn't specify a valid font for the printer, and the current display font is scalable, then SAS will use the display font to print.
If the current display font is not scalable, SAS will use 10-point SAS Monospace.
If the SAS Monospace font is not available, SAS will use the printer's default font to print.
Note: To ensure that row and column separators and boxed tabular reports will be printed legibly when using the standard forms characters, you must use these resources:
the SAS Monospace or the SAS Monospace Bold font
a printer that supports TrueType fonts
Examples |
This example specifies to use the 12-point SAS Monospace font on the default printer:
-sysprintfont ("SAS Monospace" 12)
This example specifies to use 10-point Courier New on the printer named HP LaserJet IIIsi Postscript, attached to LPT1:. Note that the name given for the printer is how it appears in the Print Setup dialog box in SAS:
-sysprintfont ("Courier New" named "HP LaserJet IIIsi Postscript on LPT1:")
This example specifies the Albany AMT font for the PDF Universal Printer:
sysprintfont=('courier' 11 uprint='PDF')
See Also |
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.