Enhancing and Exporting Charts and Plots |
Exporting Graphs
|
Exporting SAS/GRAPH Output Using Program
Statements
To export SAS/GRAPH output using program statements, you specify
To specify an output destination, you
|
General form, FILENAME statement:
where
|
|
General form, GOPTIONS statement:
where options-list can be one or more
graphics options.
|
For example, the following FILENAME statement assigns the
fileref Mygif to the file C:\My SAS Files\Hbar1.gif
in the Windows environment. Then the GOPTIONS statement specifies
Mygif as the output destination for the SAS/GRAPH procedure
that follows.
filename mygif 'c:\my sas files\hbar1.gif'; To specify the device driver, you use the DEVICE= graphics option in the GOPTIONS statement. |
General form, DEVICE= option:
where device-driver is a valid device driver. |
For example, to specify your output as a GIF file, you add
the following DEVICE= option:
filename mygif 'c:\my sas files\hbar1.gif';
The following SAS program creates a bar chart and a pie chart, each stored in a separate GIF file. filename bargif 'g:\images\barchart.gif'; |
Copyright © 2002 SAS Institute Inc.,
Cary, NC, USA. All rights reserved.