BookmarkSubscribeRSS Feed
ksingh67
Calcite | Level 5
Hi Group, I've recently started getting the following error when outputting to HTML.
 
ERROR: Insufficient authorization to access /pbr/biconfig/940/Lev1/SASApp/ttest.htm.
ERROR: No body file. HTML output will not be created.
 
Here's the SAS code:
title 'Comparing Group Means';

data Scores;
input Gender $ Score @@;
datalines;
f 75 f 76 f 80 f 77 f 80 f 77 f 73
m 82 m 80 m 85 m 85 m 78 m 87 m 82
;

ods html body='ttest.htm' style=HTMLBlue;

proc ttest;
class Gender;
var Score;
run;

ods html close;

taken from:

https://documentation.sas.com/doc/en/statcdc/14.2/statug/statug_ods_examples01.htm

 

Regards

K

4 REPLIES 4
SASKiwi
PROC Star

Try this to see if it will redirect the file to your own home directory:

title 'Comparing Group Means';

data Scores;
   input Gender $ Score @@;
   datalines;
f 75  f 76  f 80  f 77  f 80  f 77  f 73
m 82  m 80  m 85  m 85  m 78  m 87  m 82
;

ods html body='~/ttest.htm' style=HTMLBlue;

proc ttest;
   class Gender;
   var Score;
run;

ods html close;
tom_grant
SAS Super FREQ

*Try this code;

title 'Comparing Group Means';

data Scores;
input Gender $ Score @@;
datalines;
f 75 f 76 f 80 f 77 f 80 f 77 f 73
m 82 m 80 m 85 m 85 m 78 m 87 m 82
;

ods html path="~/" file="ttest.htm" style=HTMLBlue;

proc ttest;
class Gender;
var Score;
run;

ods html close;

 

 

Reeza
Super User

You need to specify a full path, the default path for the file isn't writeable. 

 

Including a full path in the body portion gets around this.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 4 replies
  • 727 views
  • 1 like
  • 4 in conversation