ODS RTF CLOSE;
ods listing close;
ods html;
data stocks;
set sashelp.stocks;
Month = month(date); /* 1, 2, 3, ..., 12 */
Year = year(date); /* 1986, 1987, ..., 2005 */
run;
proc sort data=stocks; by date; run;
ods graphics / imagefmt=GIF outputfmt=gif width=4in height=3in; /* each image is 4in x 3in GIF */
options papersize=('4 in', '3 in') /* set size for images */
nodate nonumber /* do not show date, time, or frame number */
animduration=0.5 animloop=yes noanimoverlay /* animation details */
printerpath=gif animation=start; /* start recording images to GIF */
ods printer file='C:\Users\lindsey\Documents\Gifs'; /* images saved into animated GIF */
ods html select none; /* suppress screen output */
proc sgplot data=stocks;
title "Stock Performance";
by year; /* create 20 images, one for each year */
series x=month y=close / group=stock; /* each image is a time series */
xaxis integer values=(1 to 12);
yaxis min=10 max=210 grid; /* set common vertical scale for all graphs */
run;
ods html select all; /* restore screen output */
options printerpath=gif animation=stop; /* stop recording images */
ods printer close; /* close the animated GIF file */ Log:
1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
NOTE: ODS statements in the SAS Studio environment may disable
some output features.
73
74 ODS RTF CLOSE;
75 ods listing close;
76
77 ods html;
NOTE: Writing HTML Body file: sashtml19.htm
78 data stocks;
79 set sashelp.stocks;
80 Month = month(date); /* 1, 2, 3, ..., 12 */
81 Year = year(date); /* 1986, 1987, ..., 2005
81 ! */
82 run;
NOTE: There were 699 observations read from the data set
SASHELP.STOCKS.
NOTE: The data set WORK.STOCKS has 699 observations and 10
variables.
NOTE: DATA statement used (Total process time):
real time 0.01 seconds
cpu time 0.00 seconds
83
84 proc sort data=stocks; by date; run;
NOTE: There were 699 observations read from the data set
WORK.STOCKS.
NOTE: The data set WORK.STOCKS has 699 observations and 10
variables.
NOTE: PROCEDURE SORT used (Total process time):
real time 0.02 seconds
cpu time 0.01 seconds
85
86 ods graphics / imagefmt=GIF outputfmt=gif width=4in
86 ! height=3in; /* each image is 4in x 3in GIF */
87 options papersize=('4 in', '3 in')
87 ! /* set size for images */
88 nodate nonumber
88 ! /* do not show date, time, or frame number */
89 animduration=0.5 animloop=yes noanimoverlay
89 ! /* animation details */
90 printerpath=gif animation=start;
90 ! /* start recording images to GIF */
91 ods printer
91 ! file='C:\Users\lindsey\Documents\Gifs'; /*
91 ! images saved into animated GIF */
NOTE: Writing ODS PRINTER output to DISK destination
"C:\Users\lindsey.nelson\Documents\Gifs", printer "gif".
92
93 ods html select none;
93 ! /* suppress screen output */
94 proc sgplot data=stocks;
95 title "Stock Performance";
96 by year;
96 ! /* create 20 images, one for each year */
97 series x=month y=close / group=stock;
97 ! /* each image is a time series */
98 xaxis integer values=(1 to 12);
99 yaxis min=10 max=210 grid;
99 ! /* set common vertical scale for all graphs */
100 run;
NOTE: PROCEDURE SGPLOT used (Total process time):
real time 7.05 seconds
cpu time 3.12 seconds
WARNING: RTF destination does not support GIF images. Using the
default static format.
WARNING: RTF destination does not support GIF images. Using the
default static format.
WARNING: RTF destination does not support GIF images. Using the
default static format.
WARNING: RTF destination does not support GIF images. Using the
default static format.
WARNING: RTF destination does not support GIF images. Using the
default static format.
WARNING: RTF destination does not support GIF images. Using the
default static format.
WARNING: RTF destination does not support GIF images. Using the
default static format.
WARNING: RTF destination does not support GIF images. Using the
default static format.
WARNING: RTF destination does not support GIF images. Using the
default static format.
WARNING: RTF destination does not support GIF images. Using the
default static format.
WARNING: RTF destination does not support GIF images. Using the
default static format.
WARNING: RTF destination does not support GIF images. Using the
default static format.
WARNING: RTF destination does not support GIF images. Using the
default static format.
WARNING: RTF destination does not support GIF images. Using the
default static format.
WARNING: RTF destination does not support GIF images. Using the
default static format.
WARNING: RTF destination does not support GIF images. Using the
default static format.
WARNING: RTF destination does not support GIF images. Using the
default static format.
WARNING: RTF destination does not support GIF images. Using the
default static format.
WARNING: RTF destination does not support GIF images. Using the
default static format.
WARNING: RTF destination does not support GIF images. Using the
default static format.
NOTE: There were 699 observations read from the data set
WORK.STOCKS.
101 ods html select all; /*
101 ! restore screen output */
102
103 options printerpath=gif animation=stop;
103 ! /* stop recording images */
104 ods printer close;
104 ! /* close the animated GIF file */
ERROR: Invalid file, C:\Users\lindsey\Documents\Gifs.
105
106 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
118 And I am sorry, I thought it was working but then the file would did not appear in my created folder.
... View more