We’re smarter together. Learn from this collection of community knowledge and add your expertise.

Problem Note 53333: SAS® University Edition generates errors when local data is accessed

by SAS Employee jennifers_sas on ‎07-21-2014 11:28 AM - edited on ‎10-05-2015 03:24 PM by Community Manager (1,165 Views)

This SAS Note describes issues that might occur when you run a LIBNAME or FILENAME statement in SAS University Edition.

When Running a LIBNAME Statement

When you run a LIBNAME statement in SAS University Edition, you might see the following message:

NOTE: Library [name of library] does not exist.

This issue occurs if you incorrectly reference the shared folder location. Because SAS University Edition is provided on a Linux virtual machine, LIBNAME statements must follow the Linux guidelines for referencing a folder location. To learn the correct way to write a LIBNAME statement in SAS University Edition, visit this SAS University Edition: Help Center page.

When Running a FILENAME Statement

When you run a stand-alone FILENAME statement in SAS University Edition, you might find that the code runs with no errors, even if the file path is incorrect. However, when the file reference defined in the associated FILENAME statement is used in another area of the program, errors similar to this one might appear:

ERROR: Physical file does not exist, /opt/sasinside/SASConfig/Lev1/SASApp/C:\SASUniversityEdition\myfolders\Cheatsheet.xlsx.

A FILENAME statement should be set up similarly to a LIBNAME statement. Use the LIBNAME information that is on the SAS University Edition: Help Center page (same page as above) to structure a FILENAME statement.

A Third Issue: Path Invalid

Here is another error that you might receive when attempting to access your data:

ERROR: The path /users/xxyyzz/Downloads/Cheatsheet.xlsx is invalid because it is not in the list of accessible paths when SAS is in the lockdown state.

If you see an error similar to this one, you might be referencing an improper folder in which to store your files. Review the instructions below to ensure that your shared folder is set up correctly.

Alternatively, if your folder is set up properly, the problem might be that you are not accessing the folder properly. To make sure that you are accessing the folder correctly, see the LIBNAME/FILENAME documentation SAS University Edition: Help Center page referenced above.

 

Is Your Shared Folder Set Up Correctly?

If you are unsure whether your shared folder is set up properly, or even set up at all, click here to access the Download SAS University Edition web page and then follow these steps:

  1. Choose your appropriate quick-start guide found in Step 2 of the download site.
  2. See Step 3 of the quick-start guide and follow the directions for correctly setting up your shared folders.

When setting up your shared folder, ensure that the name matches the quick-start guide's naming convention. If your folder is named something else, SAS University Edition does not recognize the folder as the proper sharing location and will not list your folder in the Folder Shortcuts section to the left of SAS University Edition software.

For all other questions regarding LIBNAME statements, FILENAME statements, or SAS University Edition usage questions in general, visit our SAS Analytics U Community, which is available here.

Comments
by plrikard
on ‎09-30-2014 05:08 PM

I just started using the UE software. I am able to READ regular  TXT files from Myfiles but have various failures when attempting to write files in the data step. I configured the file names correctly but if I attempt to write to an existing file I get permission errors. If I attempt to write to a new files I get the message that the file doesn't exist.  My test program is a phonebook example (two columns per page with positioning controlled by retained variables). The program works fine in regular SAS editions but not under the UE.

by soldelmar
on ‎12-09-2014 06:09 PM

I have double checked that I created the right folder, (which I think I did, because I can see it from folders) but it keeps giving me the following error:

What am I doing wrong?

1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;

42 ;

43 libname rawdata " /Users/solaldrete/Documents/SASUniversityEdition/myfolders " ;

ERROR: The path /Users/solaldrete/Documents/SASUniversityEdition/myfolders is invalid because it is not in the list of accessible

  paths when SAS is in the lockdown state.

ERROR: Error in the LIBNAME statement.

44 ;

45 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;

55 ;

by SAS Employee JosvanderVelden
on ‎12-15-2014 09:43 AM

Your libname in the sas university edition probably needs to be something like "/folders/myfolders".

In the vApp settings your shared folder is probably defined as

                 Folder Path: /Users/solaldrete/Documents/SASUniversityEdition/myfolders

                 Folder Name: myfolders

You should remove spaces from the "" in the libname statement.

Ex. "/folders/myfolders" is correct but "     /folders/myfolders       " will produce an error because of the spaces.

Best regards, Jos

by soldelmar
on ‎12-18-2014 02:59 PM

thank you, finally worked out

Your turn
Sign In!

Want to write an article? Sign in with your profile.