Chapter Contents |
Previous |
Next |
The GDEVICE Procedure |
Using the GDEVICE Windows |
These are the thirteen GDEVICE windows in order of appearance:
The fields in these windows represent device entry parameters. The GDEVICE windows group the device parameters by topic, to make it easy for you to review or modify the entry. If you open the device entry in edit mode, you can modify the fields directly. For a description of each field, see the corresponding parameter in Graphics Options and Device Parameters Dictionary or refer to the SAS Help facility. For a complete list of device parameters, see ADD Statement.
Note: The parameters
are sometimes an abbreviation of the field names, but the correspondence should
be clear. For example, in the Detail window, the "Driver query" field corresponds
to the DRVQRY parameter, and the "Queued messages" field corresponds to the
QMSG parameter.
This section briefly describes the GDEVICE windows;
for a complete description of each window and its fields, refer to the SAS
Help facility.
You can navigate and manipulate the GDEVICE windows
by entering commands on the command line or selecting them from the menus.
For a complete description of all the GDEVICE window commands, refer to the
SAS Help facility.
You can enter these commands in the Directory window selection field:
You cannot edit the TYPE and UPDATED fields in the Directory Window.
The DIRECTORY Window
The Detail Window
From this window you can access any of the subsidiary GDEVICE windows by
Note: If the
device does not support a hardware characteristic, the catalog entry cannot
enable the support.
The Parameters Window
The Gcolors Window (partial view)
The Chartype Window (partial view)
The Colormap Window (partial view)
Do not alter the fields in the Metagraphics window unless you are changing the color scheme (colortype), or building a Metagraphics driver.
The Metagraphics Window
This window enables you to specify one or more hexadecimal strings that are sent to the device just before graphics commands are sent. Additional commands can be sent with the PREGPROLOG= and POSTGPROLOG= graphics options. See Graphics Options and Device Parameters Dictionary for details.
The Gprolog Window (partial view)
This window enables you to specify one or more hexadecimal strings that are sent to the device just after graphics commands are sent. Additional commands can be sent with the PREGEPILOG= and POSTGEPILOG= graphics options. See Graphics Options and Device Parameters Dictionary for details.
The Gepilog Window (partial view)
The Gstart Window (partial view)
The Gend Window (partial view)
This window controls the output destination and formatting of the data stream produced by the driver. (Most of these values can also be specified with the GOPTIONS statement and with the FILENAME statement. See also Exporting SAS/GRAPH Output with Program Statements.)
The Host File Options Window
The Host Commands Window
Creating or Modifying Device Entries |
To use a device entry stored in a personal catalog, you must assign the GDEVICEn libref to the library that contains the device catalog. See About Device Catalogs.
It is a good idea to give a new or modified device entry a name that is different from the original. Then, if you want to use the original device, SAS/GRAPH can find that device when it searches the device catalogs. Remember that SAS/GRAPH searches the GDEVICEn libraries before it searches SASHELP.DEVICES and uses the first device it finds whose name matches the one you have specified. (See Search Order of Device Catalogs.)
For example, suppose there is a customized copy of PSCOLOR
in your GDEVICE0.DEVICES catalog as well as the original in SASHELP.DEVICES.
If you specify DEV=PSCOLOR and if the libref GDEVICE0 is assigned, SAS/GRAPH will
search GDEVICE0.DEVICES first and use the copy of PSCOLOR stored there. Unless
you cancel the GDEVICE0 libref, SAS/GRAPH will
never find the original in SASHELP.DEVICES.
If you want to start with a blank device entry and fill in values for the parameters, use the EDIT command from the DIRECTORY window or use the ADD statement with program mode PROC GDEVICE.
With either method, you must provide values for the parameters listed in Required Arguments. If you copy and modify an existing entry, all the required parameters will already have values. If you create a new entry with GDEVICE windows, you are prompted to fill in the appropriate fields.
Note: When you change a field in an Institute-supplied device entry (either the
original device entry in SASHELP.DEVICES or a copy), SAS/GRAPH software
asks whether you really want to change the entry. Answer Y to change the entry
or N to cancel the operation.
Typically, you modify an existing device entry when you want
to change the device parameters permanently in order to customize a device
entry. The process is similar to creating a new entry in that you usually
begin by copying the entry you want to modify into your personal catalog and
making the changes there. See Creating a Custom Device Entry with Program Statements
for an example of creating a custom device entry.
You can change some device parameters temporarily by overriding their settings with graphics options in a GOPTIONS statement. In this case, the settings remain in effect until you change them or end your SAS session. For details, see Overriding Device Parameters Temporarily.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.