|
COPY statement |
|
MODIFY statement |
Pie Chart Created with Default WIN Device Entry
![[Pie Chart of SASHELP.CLASS]](images/gr15n01.gif)
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.
This example permanently changes the default color list
for the WIN device entry.
![Note about code](../../../../common/63294/HTML/default/images/snbut.gif) |
libname gdevice0 "SAS-data-library"; |
![Note about code](../../../../common/63294/HTML/default/images/snbut.gif) |
proc gdevice nofs catalog=gdevice0.devices; |
![Note about code](../../../../common/63294/HTML/default/images/snbut.gif) |
copy win from=sashelp.devices newname=mypscol; |
![Note about code](../../../../common/63294/HTML/default/images/snbut.gif) |
modify mypscol
description="WIN with new color list"
colors=(black cx95c051 cxA359B2 cxD65259 cx69D6D2 cxFFB74F cx929cff); |
![Note about code](../../../../common/63294/HTML/default/images/snbut.gif) |
quit; |
![Note about code](../../../../common/63294/HTML/default/images/snbut.gif) |
goptions target=mypscol;
proc gchart data=sashelp.class;
pie age/discrete noheading;
run;
quit; |
Pie Chart Created with Customized WIN Device Entry
![[Pie Chart with New Device Colors]](images/gr15n02.gif)
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.