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 <strong>SAS</strong> Log and <strong>SAS</strong> Procedure Output Using the PRINT Command and the FORM Subsystem 119<br />

Typically, your system administrator sets up the printers. Your system administrator<br />

can save printer definitions to <strong>SAS</strong>HELP so that all users have access to them. When<br />

you use PROC PRTDEF, you can save the definitions in the <strong>SAS</strong>USER or <strong>SAS</strong>HELP<br />

libraries.<br />

Printing a Graphics Window<br />

When printing a graphics window, you can print to the default printer, to any other<br />

Universal Printer, or to a <strong>SAS</strong>/GRAPH graphics driver. To print from a printer that is<br />

not the default, select from the list of available printers. To print with a <strong>SAS</strong>/GRAPH<br />

driver, select the Use <strong>SAS</strong>/GRAPH Drivers check box in the Print Method group box.<br />

The software will display a list of available drivers from which you can select.<br />

Previewing a Print Job<br />

You cannot currently preview a print job on a mainframe.<br />

Using the PRINT Command and the FORM Subsystem<br />

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

your default printer. The default printer — as well as other aspects of your output such<br />

as printer margins, printer control language, and font control in<strong>for</strong>mation — is<br />

controlled by the FORM subsystem. The FORM subsystem consists of six frames that<br />

are described in detail in <strong>SAS</strong> Language Reference: Dictionary and in “Host-Specific<br />

Windows of the FORM Subsystem” on page 556. You use these frames to define a <strong>for</strong>m<br />

<strong>for</strong> each printer that is available to you at your site. You can also define multiple <strong>for</strong>ms<br />

<strong>for</strong> the same printer. (See “Adding a Form” on page 120.) Your local <strong>SAS</strong> Support<br />

Consultant can give you in<strong>for</strong>mation about your default <strong>for</strong>m and about any other <strong>for</strong>ms<br />

that have been defined at your site.<br />

Specifying a Form<br />

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

can use the FORM= option with the PRINT command. Use this option to specify a <strong>for</strong>m<br />

that has been defined <strong>for</strong> a different printer. For example, to copy output to a printer<br />

destination that is described in a <strong>for</strong>m named MYOUTPUT, you would enter the<br />

following command-line command:<br />

print <strong>for</strong>m=myoutput<br />

Modifying Your Default Form<br />

To change the default destination printer and to customize other features of the<br />

output that the PRINT command generates, you can modify the default <strong>for</strong>m that the<br />

FORM subsystem uses. To modify your default <strong>for</strong>m, do the following:<br />

1 Enter fs<strong>for</strong>ms default from the command line to display your default <strong>for</strong>m. If<br />

your <strong>SAS</strong>USER.PROFILE catalog contains a <strong>for</strong>m named DEFAULT, then that<br />

<strong>for</strong>m is displayed. If you do not have a <strong>for</strong>m named DEFAULT, then the Printer<br />

Selection frame is displayed.<br />

2 Select a printer from the Printer Selection frame. When you select a printer, <strong>SAS</strong><br />

copies the default <strong>for</strong>m <strong>for</strong> that printer into your <strong>SAS</strong>USER.PROFILE catalog.<br />

Note: Printer in<strong>for</strong>mation is site-specific; see your system administrator if you<br />

need help with selecting a printer. R

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

Saved successfully!

Ooh no, something went wrong!