BookmarkSubscribeRSS Feed
chrissowden
Obsidian | Level 7

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 html;

ods graphics / imagefmt=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:\AnimGif\ByGroup\Anim.gif'; /* 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;

 

 

 

I am getting the following errors:

ERROR: Insufficient authorization to access /apps/sas/SAS94/Config_GCS/Lev1/SASApp94/sashtml.htm.

ERROR: No body file. HTML output will not be created.

ERROR: The HTML destination is not active; no select/exclude lists are available.

 

ERROR: Insufficient authorization to access /apps/sas/SAS94/Config_GCS/Lev1/SASApp94/C:\AnimGif\ByGroup\Anim.gif.

3 REPLIES 3
DanH_sas
SAS Super FREQ

On the ODS HTML statement, try setting the PATH option to a place you know is writable by you. For example,

 

ods html path="/home/myaccount" (url=none) file="output.html";

 

Hope this helps!

Dan

chrissowden
Obsidian | Level 7

ods html path="C:/Users/csowden/Desktop/SAS programs" (url=none) file="output.html";

 

that is what I have. I am on SAS grid. I wouldn't think that has anything to do with it.

 

ods printer file='C:/AnimGif/ByGroup/Anim.gif'; /* images saved into animated GIF */

 

ERROR: Physical file does not exist, /apps/sas/SAS94/Config_GCS/Lev1/SASApp94/Computer/Users/csowden/Desktop/SAS

The SAS System

programs/output.html.

 

ERROR: No body file. HTML output will not be created.

 

 

ERROR: The HTML destination is not active; no select/exclude lists are available.

 

ods html select all; /* restore screen output */

ERROR: The HTML destination is not active; no select/exclude lists are available.

 

ERROR: Physical file does not exist, /apps/sas/SAS94/Config_GCS/Lev1/SASApp94/C:/AnimGif/ByGroup/Anim.gif.

ballardw
Super User

@chrissowden wrote:

ods html path="C:/Users/csowden/Desktop/SAS programs" (url=none) file="output.html";

 

that is what I have. I am on SAS grid. I wouldn't think that has anything to do with it.

 

ods printer file='C:/AnimGif/ByGroup/Anim.gif'; /* images saved into animated GIF */

 

ERROR: Physical file does not exist, /apps/sas/SAS94/Config_GCS/Lev1/SASApp94/Computer/Users/csowden/Desktop/SAS

The SAS System

programs/output.html.

 

ERROR: No body file. HTML output will not be created.

 

 

ERROR: The HTML destination is not active; no select/exclude lists are available.

 

ods html select all; /* restore screen output */

ERROR: The HTML destination is not active; no select/exclude lists are available.

 

ERROR: Physical file does not exist, /apps/sas/SAS94/Config_GCS/Lev1/SASApp94/C:/AnimGif/ByGroup/Anim.gif.


Notice that your path element: Users/csowden/Desktop/SAS has been appended to the executable path of SAS ( /apps/sas/SAS94/Config_GCS/Lev1/SASApp94/), likely on a server and I bet you don't have write privileges or permission to create the additional directory elements there. Similar for the GIF file but that error actually shows the C:

sas-innovate-white.png

Special offer for SAS Communities members

Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 2298 views
  • 0 likes
  • 3 in conversation