Chapter Contents

Previous

Next
The GDEVICE Procedure

Example 1: Creating a Custom Device Entry with Program Statements


Procedure features:
COPY statement
MODIFY statement
Other features:
PROC GTESTIT
Sample library member: GR15N01

[IMAGE]

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. You can submit these statements one at a time or together.

This example permanently changes the default colors list for the PSCOLOR device entry. The contents of the original PSCOLOR entry are shown in Sample Device Entry Listing Generated in Program Mode. The new device entry is illustrated in the PROC GTESTIT output above.
 Note about code
libname gdevice0 'SAS-data-library';
 Note about code
proc gdevice nofs catalog=gdevice0.devices;
 Note about code
copy pscolor from=sashelp.devices newname=mypscol;
 Note about code
   modify mypscol
     description='PSCOLOR with new colors list'
     colors=(black blue green red gray cyan
            lime lipk);
 Note about code
quit;
 Note about code
goptions target=mypscol;
proc gtestit pic=1;
run;


Chapter Contents

Previous

Next

Top of Page

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