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
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;
*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;
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.
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
Select SAS Training centers are offering in-person courses. View upcoming courses for: