Chapter Contents


SAS/GRAPH Software: Reference

Selecting a Device Driver

Although SAS/GRAPH software usually selects an appropriate device driver for displaying graphics output on your display device, you may need to select a different device driver if you want to direct your graphics output to another destination.

When you select a device driver, it must be one that is appropriate for your device. The device driver must

Occasionally the device driver you use is not the one that bears your device's name. This can happen when

In this case, you use the device driver that matches the language that your device understands. For example, if your Hewlett-Packard LaserJet II printer has a PostScript card installed, you would use one of the PostScript device drivers rather than HPLJS2. Similarly, you could use an HP driver for a plotter (for example, HP7550A) when your plotter emulates a Hewlett-Packard 7550 plotter.

You cannot force a device to act as a device with different capabilities by choosing a different device driver.

Viewing the List of Available Device Drivers

You can view the list of device entries in SASHELP.DEVICES or in any other device catalog in the following ways:

Once you have generated the list of available device drivers, you can search the list until you find the description that matches your output device. The corresponding name is the name that you specify as the device driver.

Browsing the Contents of a Device Entry

You can also use any of the viewing methods to browse the contents of a device entry. From the GDEVICE Directory window, select the device name to open the GDEVICE Detail window. From there you can move to the other GDEVICE windows for the entry, using either the menus or commands. For details, see Using the GDEVICE Windows.

You can display the contents of a device entry in the Output window by selecting the entry from the Explorer window or by submitting GDEVICE statements. The following statements list in the Output window the contents of the PSCOLOR device entry:

proc gdevice c=sashelp.devices nofs;
   list pscolor;

See Sample Device Entry Listing Generated in Program Mode for an illustration of the device listing.

Specifying a Device Driver in a SAS Session

You can specify a device driver in these ways:

If you specify a device driver in more than one way, the most recently specified device driver is used. The device driver stays in effect until you specify another device, submit the graphics option RESET=GOPTIONS or RESET=ALL, or end your SAS session.

If you use the same device driver for most or all of your SAS/GRAPH programs, you can put the GOPTIONS DEVICE= statement in an AUTOEXEC file. See the SAS companion for your operating environment for details on setting up an AUTOEXEC file.

You can also specify a device for previewing or printing your output with the TARGETDEVICE= graphics option. For details, see Printing Graphics Output.

Chapter Contents



Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.