SAS Institute. The Power to Know

SAS/GRAPH(R) 9.2 Reference

Previous Page | Next Page

Device Drivers

About Device Drivers

To produce graphics output on a graphics output device, SAS/GRAPH software uses a device driver. Device drivers are the components of SAS/GRAPH software that translate the device-independent output from SAS/GRAPH procedures into the appropriate commands to produce graphics output on particular output devices. Device drivers contain settings that determine the default appearance of the output, such as dimensions and orientation, cell size, colors, and hardware fonts. They can also contain host commands that are issued before and after the driver produces output.

A device driver is composed of two parts:

  • a device entry in a SAS catalog

  • an executable module.

The device entry is a SAS catalog entry of type DEV. It is created and accessed with the GDEVICE procedure and explicitly refers to the executable module. The device entry contains device parameters whose settings can control

  • the appearance of the output

  • the destination to which the output is sent (native SAS/GRAPH drivers only)

  • communications between the operating environment and the device

  • how the device generates the output.

Note:   Device entry parameters affecting appearance are effective only if the SAS option NOGSTYLE is set. By default, the SAS option GSTYLE is set and output appearance is controlled by the active style.

For information on the NOGSTYLE option, see Changing the Appearance of Output to Match That of Earlier SAS Releases.

For information on styles, see Controlling The Appearance of Your Graphs.  [cautionend]

You can change these settings either by modifying the device parameters using the GDEVICE procedure, or by overriding the parameter settings using graphics options in a GOPTIONS statement. For details, see Controlling Output with Device Drivers.

The executable module is a program that produces the device-specific commands from the device-independent output of a SAS/GRAPH procedure. The executable module uses the parameters specified in the device entry to tell it exactly how to do so.

SAS/GRAPH software provides device entries for your operating environment in the Institute-supplied catalog, SASHELP.DEVICES.

If your site has created custom device entries, they may also be stored in SASHELP.DEVICES, although typically custom devices are stored in the catalog GDEVICE0.DEVICES. For more information about custom device entries, see About Device Catalogs or ask your SAS Support Consultant.


Types of Device Drivers

Most of the device drivers in SASHELP.DEVICES are SAS/GRAPH native device drivers, which are those SAS/GRAPH drivers that produce output in the native language of the device. For example, the PS300 driver is a "native device driver" because it directly produces PostScript output.

A special set of interface drivers enable you to route graphics output to the default print device. For OpenVMS, UNIX, and z/OS operating environments, the interface drivers use the Universal Printing subsystem to access a Universal Printer. For Windows, the interface drivers use the Windows Print Manager subsystem to access the printer that is defined as the default.

The interface drivers are:

SASPRTC

(Color output)

SASPRTG

(Grayscale output)

SASPRTM

(Monochrome output)

The WINPRTx and XPRINTx series of drivers are identical to the SASPRTx drivers.

For more information about Universal Printing, see the Base SAS Software section in SAS Help and Documentation. For more information about Windows printing, see the SAS Help facility for SAS/GRAPH.


How Device Drivers Are Assigned

Because many characteristics of the graphics output depend on parameter values that are stored in the device entry, SAS/GRAPH procedures that produce graphics output must know which device driver to use before they begin processing.

In some cases, SAS/GRAPH automatically selects a device driver for you and you are not required to explicitly specify one. If you use the GRAPH window to display graphics output, SAS/GRAPH selects a device driver that is appropriate for your device. The default device driver for your site may also be selected by your SAS Installation Representative.

If you submit a SAS procedure without specifying a device driver and your display device does not support the GRAPH window or you are running outside the SAS windowing system, SAS/GRAPH prompts you for a driver name.

Whether or not a default device is assigned, you can always explicitly assign a device driver. See Selecting a Device Driver for more information.

Previous Page | Next Page | Top of Page