Chapter Contents |
Previous |
Next |
SAS/GRAPH Software: Reference |
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 |
proc gdevice catalog=sashelp.devices;
See Using the GDEVICE Windows for details.
proc gdevice catalog=sashelp.devices nofs; list; run; quit;
The NOFS option in the PROC GDEVICE statement causes the procedure not to use the GDEVICE windows.
If you want to write the list of devices to an external file you can
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; run; quit;
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:
goptions device=pslepf;
For details, see GOPTIONS Statement.
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 |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.