Hi all,
I have just downloaded SAS University edition and starting on my study. As instructed SASUser in University Edition is actually NOT writable, so I created a redirect using the redirect (1), the output was successful (2).
Then I tried to run a standard code (3) and receive an error. Can anyone please tell me how to avoid this. I thought the redirect would work?
Thanks,
1. Submitted Redirect:-
libname sasuser "/folders/myfolders/certprep";
2. Log:-
Version:1.0 StartHTML:000000293 EndHTML:000108984 StartFragment:000108047 EndFragment:000108850 StartSelection:000108047 EndSelection:000108850 SourceURL:http://localhost:10080/SASStudio/371/main?locale=en_GB&zone=GMT%252B01%253A00&http%3A%2F%2Flocalhost%3A10080%2FSASStudio%2F371%2F= SAS Studio
Hi:
Yes, that is the likely cause of your issue. As I explained in my original post:
"For either edition, the link to the program is contained here: https://support.sas.com/content/dam/SAS/support/en/books/data/sampledata.txt Note that the prepared date is in April 2018. You MUST run this setup program AFTER you do the redirect and BEFORE you run any other programs from the Prep Guide."
You must click that LINK to open a window that contains the program you need to run. You'll need to submit your "redirect" libname statement first and then copy and paste the program into SAS Studio, run the program. After that, you should be able to navigate to the "certprep" folder in the Files and Folder pane and you'll see all the files created. You have only to do this once and then every other time you want to use the data, you only have to issue the LIBNAME statement as needed.
Yes, the SAS University Edition does allow reading TXT files. There are examples of that in the Prep Guide and in many, many other postings on the Forums. The SAS University Edition can also read Excel files: XLS and XLSX and CSV files, and there are many, many other postings on the forums about that too.
The bottom line with reading TXT or Excel files is understanding where you put the files in your shared folders location. The easiest thing to do is this:
1) put the TXT file or Excel file in your shared folders location, which on windows should be a folder location like:
c:\SASUniversityEdition/myfolders
2) Once inside SAS Studio, go to the Files and Folders pane and look for your TXT file under the MyFolders icon.
3) If you see your file, then right click on the file and choose Properties -- you will see the path you need to use in Properties -- copy this path location and file name
4) use THIS information from Properties in your code
When you finished installing SASUniversity Edition, one of the last steps was making a myfolders folder and defining that folder as your shared folder location in Virtual Box or VMWare.
You CANNOT use Windows pathnames in SAS Studio. For example, if your Windows location for a file is:
c:\SASUniversityEdition\myfolders\wombat.txt
then your path in properties (assuming you defined Shared Folders correctly) would be:
/folders/myfolders/wombat.txt
Color coding is intended to show how the high-level windows path turns into a Unix path that points to the shared folder location for reference in SAS University Edition.
Hope this helps,
cynthia
I would also recommend never doing that redirect from the SASUSER library if its locked down, it's done for a reason. So I would create my own library and replace sas user in the training notes. I believe the newer training material has already been updated to reflect this change.
In my experience it was NEVER a good idea to write any data to the SASUSER library. All you had to do was launch two SAS sessions at the same time and you can no longer find your data and your programs fail.
When are they going to update ALL of the training materials to remove that mistake?
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.
Ready to level-up your skills? Choose your own adventure.