02.05.2013 Views

SAS(R) 9.1.3 Companion for z/OS

SAS(R) 9.1.3 Companion for z/OS

SAS(R) 9.1.3 Companion for z/OS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Directing Output to a Universal Printer<br />

Sending Output to a UPRINTER Device<br />

Universal Printing Directing Output to a Universal Printer 155<br />

If you are using the <strong>SAS</strong> windowing environment, you can issue the DMPRINT<br />

command in many windows, including the Log, Output, and Program Editor windows,<br />

to send window contents to the Universal Printing default printer. You can also use the<br />

FILENAME statement to associate a fileref with the default printer, using the device<br />

type UPRINTER:<br />

filename myuprt uprinter;<br />

Once a fileref is associated with a printer, you can use that fileref in a PROC<br />

PRINTTO statement to print the log or procedure output. For example, the following<br />

statement directs any subsequent output to the default UPRINTER:<br />

proc printto log=myuprt print=myuprt; run;<br />

The fileref can also be used in other <strong>SAS</strong> statements that accept filerefs or in any<br />

window command or field that accepts filerefs.<br />

Note: The -ovp option (typically used when a PROC routes log output to a universal<br />

printer) is incompatible with the UPRINTER driver. Messages are not overprinted. R<br />

The PRINTERPATH <strong>SAS</strong> Option<br />

Use the PRINTERPATH= <strong>SAS</strong> option to specify the destination printer <strong>for</strong> <strong>SAS</strong> print<br />

jobs.<br />

PRINTERPATH=(’printer-name’ fileref)<br />

printer-name<br />

must be one of the defined printers. Quotation marks are required around the<br />

printer name only when it contains blank spaces.<br />

fileref<br />

is an optional fileref. If a fileref is specified, it must be defined with a FILENAME<br />

statement or external allocation. If a fileref is not specified, output is directed to<br />

the destination defined in the printer definition or setup. Parentheses are required<br />

only when a fileref is specified.<br />

Note: The PRINTERPATH= option is an important option in batch processing. It<br />

causes Universal Print drivers to be used <strong>for</strong> <strong>SAS</strong>/GRAPH and ODS PRINTER output<br />

whenever it is set. R<br />

Changing the Default Font<br />

The font that is included in the definition of the current default printer is the font<br />

used to generate output, unless you override it with the SYSPRINTFONT= system<br />

option. SYSPRINTFONT= sets the font to use when printing to the current printer or<br />

to the printer identified with the optional keywords NAMED or ALL. You can specify<br />

SYSPRINTFONT= in your configuration file, at <strong>SAS</strong> invocation, or in an OPTIONS<br />

statement.<br />

The syntax is as follows:<br />

SYSPRINTFONT=(face-name <br />

)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!