Usage Note 23643: How can I generate a GIF file from my procedure or DATA step output?
Beginning with SAS 9.1, you can use the ODS PRINTER statement with the PRINTER=
GIF option to create GIF files from a procedure or DATA
step. This also enables you to maintain all of the styles such as
the colors in the GIF file.
ods printer SAS file="c:\temp.gif" printer=gif;
proc print data=sashelp.class;
run;
ods printer close;
Prior to SAS 9.1, you could use the another approach, which does not maintain your style information like the above method does.
You can generate a GIF file from your procedure or DATA step output if you
have the SAS/GRAPH product. Use PROC PRINTTO to send the procedure or DATA step output
to an external file, and use PROC GPRINT to generate
the GIF file from the external file.
/* Name temporary file to store output */
filename temp 'c:\test.txt';
proc printto print=temp new;
proc print data=sashelp.class;
run;
proc printto;
run;
/* Name GIF file with the filename statement */
filename temp1 'c:\test.gif';
goptions device=gif gsfname=temp1;;
proc gprint fileref=temp gout=temp1;
run;
See also the full PROC TEMPLATE FAQ and Concepts.
Operating System and Release Information
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
| Type: | Usage Note |
| Priority: | low |
| Topic: | SAS Reference ==> ODS (Output Delivery System) Query and Reporting ==> Creating Reports ==> Graphical SAS Reference ==> DATA Step System Administration ==> Printing
|
| Date Modified: | 2007-10-02 17:09:44 |
| Date Created: | 2004-01-06 14:58:33 |