Sample 25538: Creating a custom device entry using PROC GDEVICE
This sample is from the "SAS/GRAPH Software: Reference, Version 8", Volume 2, Chapter 15.
For additional information on the sample refer to this book.
/*+-------------------------------------------------------------+
| S A S S A M P L E L I B R A R Y |
| |
| NAME: GDVCSTOM |
| TITLE: GDVCSTOM-Creating a Custom Device Entry |
| PRODUCT: GRAPH |
| SYSTEM: ALL |
| KEYS: GRAPHICS GDEVICE |
| PROCS: GDEVICE |
| DATA: INTERNAL |
| |
| SUPPORT: GRAPHICS STAFF UPDATE: |
| REF: SAS/GRAPH REFERENCE GUIDE |
| MISC: EDIT AND UNCOMMENT THE LIBNAME STATEMENT |
| IF THE LIBREF HAS NOT BEEN DEFINED. |
+-------------------------------------------------------------+*/
/* Assign the libref GDEVICE0 */
*libname gdevice0 'SAS-data-library';
/* Copy the original device entry and modify */
proc gdevice catalog=gdevice0.devices nofs;
copy pscolor from=sashelp.devices newname=mypscol;
modify mypscol description='PSCOLOR with new colors list'
colors=(black blue green red gray cyan lime lipk);
list mypscol;
quit;
/* Test the new device entry */
goptions target=mypscol hsize=4.5in vsize=3.5in;
proc gtestit pic=1;
run;

This example shows how to use GDEVICE procedure statements to modify a device entry by copying the original entry into a personal catalog and changing the device parameters.
| Type: | Sample |
| Topic: | SAS Reference ==> Procedures ==> GDEVICE
|
| Date Modified: | 2005-08-27 03:03:20 |
| Date Created: | 2005-05-23 14:14:05 |
Operating System and Release Information
| SAS System | SAS/GRAPH | All | 8 TS M0 | n/a |