data sample;
input x y z;
datalines;
8.9 4.2 9.3
5.7 6.0 2.0
6.4 5.5 2.7
;
run;
ods listing close;
ods html body="e\SASUniversityEdition\Myfolder\reg.htm”;
proc reg data=sample;
model y=x;
run;
quit;
After my running the above program, the logo shows error: insuffient authorization to access/opt/sasinside/sasconfig....
No body file; Html output will not be created.
I don't know what is wrong with it? Can you help me? Thanks!
But when running the above
I think you need to be sure of what the folder path is as recognized by SAS University Edition. Right-click on "My Folders" under the Folder Shortcuts on the left-side menu and choose "Properties". This will give you the path under "Location".
This code works for me, outputting to /folders/myfolders/html. (I had to set the gpath as well.)
data sample;
input x y z;
datalines;
8.9 4.2 9.3
5.7 6.0 2.0
6.4 5.5 2.7
;
run;
options dlcreatedir;
libname htmlout '/folders/myfolders/html';
libname htmlout clear;
ods graphics / reset;
ods listing close;
ods html body="/folders/myfolders/html/reg.htm" gpath="/folders/myfolders/html";
proc reg data=sample;
model y=x;
run;
quit;
ods html close;
Still don't understand your answer fully. I have given the path "e:\SASUniversityEdition\Myfolder\reg.htm" in my program, but why the logo shows the error. I can run your program at my computer, and no error in the logo. However, I don't know where the reg.html is? I cannot find it in which driver and the folder.
If you're using SAS University Edition, it's unlikely that e:\SASUniversityEdition\Myfolder is a valid path within the virtual machine.
Right-click on My Folders under "Server Files and Folders" and choose "Properties". You will see a path next to "Location:" in the pop-up window like ,my screenshot below. My guess is that it is going to say "/folders/Myfolder". You need to use that path to specify your output. It will be case-sensitive. Then, to look at your output files outside of the virtual machine, navigate to "e:\SASUniversityEdition\Myfolder."
Edit: Here's a video from SAS showing how to work with your folders inside and outside of the virtual machine: Accessing Your Existing Data for SAS University Edition. At the 1:30 mark, it shows how to get the path from "My Folders".
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.
Find more tutorials on the SAS Users YouTube channel.