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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

118 Using the PRINT Command and Universal Printing Chapter 6<br />

Example<br />

Follow these steps to direct output to the system printer:<br />

1 Identify a print destination:<br />

filename myprint dest=dest99 sysout=a hold;<br />

2 Identify the print destination to <strong>SAS</strong>:<br />

proc printto log=myprint;<br />

3 Submit a print procedure:<br />

proc print data=work.myfile;<br />

run;<br />

4 Remove the print destination from <strong>SAS</strong>:<br />

proc printto log=log;<br />

Using the PRINT Command and Universal Printing<br />

Use the PRINT command or menu selection to direct the contents of a window to<br />

your default printer. This is the easiest method of printing output. For example, issue<br />

the PRINT command from the command line of your Output window to send the<br />

contents of that window to your default printer. The default printer — as well as other<br />

aspects of your output such as printer margins, printer control language, and font<br />

control in<strong>for</strong>mation — are controlled by the Universal Printing subsystem. The<br />

Universal Printing subsystem consists of five windows that are described in detail in<br />

the <strong>SAS</strong> Language Reference: Dictionary.<br />

Selecting a Printer<br />

To direct the contents of a window to a printer that is not your default printer, you<br />

can issue a DMSETPRINT printer-name command, where printer-name is the name of<br />

the printer that you want to make the default. You can also specify a temporary default<br />

printer by using the PRINTERPATH= system option.<br />

Modifying Printer Properties<br />

To use the default printer and change one or more of its parameters, issue the<br />

DMPRINT command on the command line of the window whose contents you want to<br />

copy. <strong>SAS</strong> displays the Print window. If the Use Forms window check box is visible,<br />

verify that it is not selected. Select Properties and change any of the parameters.<br />

Select OK to accept and OK to print. The new definition is saved in your <strong>SAS</strong>USER file,<br />

and it overrides any definition of a printer of the same name in the <strong>SAS</strong>HELP file.<br />

Creating a New Printer Definition<br />

There are several ways to set up a printer using Universal Printing:<br />

3 Select File Print Setup from a pull-down menu.<br />

3 Issue the DMPRTSETUP command.<br />

3 Issue the DMPRTCREATE command.<br />

3 Override the active printer settings using PROC PRTDEF. You can also use PROC<br />

PRTDEF to set up multiple printers at one time.

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

Saved successfully!

Ooh no, something went wrong!