Using the ODS for graphics files
So far, we've talked about using the ODS to output internal data files from PROCs. However, we can also use the ODS to save SAS output, including graphical output as files in *.pdf
, *.rtf
, and *.htm
format, which will be described in this section.
Outputting graphics from analytic PROCs
The default output for PROC UNIVARIATE
does not include any graphics. However, we can add a histogram to the output with the histogram
option:
PROC UNIVARIATE data=X.chap5_1; Â Â Â Â var _AGE80; Â Â Â Â histogram _AGE80; RUN;
This code produces the same output as before, along with this additional histogram:
Outputting graphics in different formats
Imagine we needed to use this histogram graphic outside of SAS. We could use the ODS to output this graphic (along with the rest of the PROC UNIVARIATE
output) into *.pdf
, *.html
, or *...