05-05-2016 02:58 PM
Please see the errors below of the log when I run the program to get access to my pratice data for an e learning course I am taking for statistics 1. Introduction to Anova, Regression and Logistic regression. The program is a master program St100d01.sas. Any help will be appreciated. You can contact me at email@example.com
92 93 data sasuser.testscores; 94 input Gender $ 1-6 SATScore 8-11 IDNumber 13-20; 95 datalines; ERROR: Write access to member SASUSER.TESTSCORES.DATA is denied. NOTE: The SAS System stopped processing this step because of errors. NOTE: DATA statement used (Total process time): real time 0.00 seconds cpu time 0.00 seconds 176 ; 177 run; 178 179 data sasuser.fitness; 180 input @1 Name $8. @10 Gender $1. @12 RunTime 5.2 @18 Age 2. @21 Weight 5.2 181 @27 Oxygen_Consumption 5.2 @33 Run_Pulse 3. 182 @37 Rest_Pulse 2. @40 Maximum_Pulse 3.; 183 Performance=260-round(10*runtime + 2*age + 4*(Gender='F')); 184 datalines; ERROR: Write access to member SASUSER.FITNESS.DATA is denied. NOTE: The SAS System stopped processing this step because of errors. NOTE: DATA statement used (Total process time): real time 0.00 seconds cpu time 0.01 seconds
05-11-2016 10:56 PM
05-14-2016 01:25 PM
The program that you reference: St100d01.sas is used in the classroom version of our Statistics 1 class. You must have a book and the data from a Statistics 1 classroom offering. On the classroom lab machines, students have write access to the SASUSER library on the lab machines.
Unfortunately, as others have noted, when you use SAS University Edition, in a Virtual Machine, or on the Amazon AWS, you do NOT have write access to the SASUSER library.
So you have a few different options (these options are mutually exclusive):
1) as suggested, you could change the code to write to WORK,but that means you would have to recreate the data files every time you wanted to use the data;
2) you could create a Univ Edition folder in your shared folder location like this:
/folders/myfolders/stat1 and then, BEFORE you run the setup program St100d01.sas you could issue this statement to "redirect" the SASUSER library to the new folder location:
libname sasuser '/folders/myfolders/stat1';
and then the program would not need to be changed, but you would have to remember to issue this LIBNAME statement every time you started working. With this approach, you'd only have to run the setup program 1 time;
3) you could switch to using the Statistics 1 e-learning class, which has explicit instructions for making data in SAS University Edition (which do not use SASUSER). Instead for SAS University Edition, they recommend that you make a folder in your shared folders location like this:
and then they recommend that you issue these 2 LIBNAME statements (that do NOT use SASUSER):
libname statdata '/folders/myfolders/ecst131';
libname library '/folders/myfolders/ecst131';
if you are going to switch to the e-learning version of the course, your setup program will be different than the one we use in the classroom. For the e-learning course, look in Task 2 at Step 2 of the setup instruction to get the e-learning program that references the STATDATA library. Again, with this approach, you would only have to run the setup program 1 time, but you would then use the e-learning course for practices, since the data INSIDE the course matches the lectures INSIDE the course. The e-learning course data and lectures will NOT match the book that you have from the classroom offering.
If you want to continue working with your book from the classroom version of the class then you should pick between options 1 and 2. If you are willing to switch to using the e-learning version of the course, which has explicit instructions for the University Edition, then pick option 3.
I hope this helps explain why the program you referenced uses the SASUSER library. It was from a course that is primarily taught to users who have write access to their SASUSER location.