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:

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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