Learning SAS? Welcome to the exclusive online community for all SAS learners.

Library does not exist despite using Unix forward slashes

Accepted Solution Solved
Reply
New Contributor
Posts: 3
Accepted Solution

Library does not exist despite using Unix forward slashes

Dear SAS Community,

Installed SAS Studio ( University edition) on  Windows10 Home using Virtual Box ( Windows 8.1 and VMWware also had the same issue, so tried Windows 10 and Virtual Box)

Can't seem to get past the  LIBRARY 'NIS" does not exist  error despite using all the suggested  methods.

nis is the name of the library I want to create.

1) Created the nis folder as a subfolder in the 'myfolders' section ( made sure Virtual Box has the path to the shared folders)

2.Libname command had the path to the lib in the myfolders section using the forward slash for the Unix environment

3.Still can't get through it

Here is what is happening

Using a SAS Load program for NIS data analyses  to cover a existing ASCI file to SAS file

Entering the libname command as follows --->   libname nis 'C:/Users/username/Desktop/SASUniversityEdition/myfolders';

*** Data Step to load the file ***;

DATA nis.xyz_file;

INFILE 'C:/Users/username/Desktop/SASUniversityEdition/myfoldersxyz_file.ASC' LRECL = 64;

ERROR: Library NIS does not exist.

NOTE: The SAS System stopped processing this step because of errors.

NOTE: DATA statement used (Total process time):

  real time 0.01 seconds

  cpu time 0.03 seconds

The Library NIS shows up in the left hand window pane of " My Libraries" but when I right click on the properties it shows up as "The selected library is not valid".

Background- My harddrive is divided into C, D, E, G

C- Shared folder location

E- Location of SAS Vapp file

E- Location of Virtualbox program

Are the different locations on the local computer contributing to the problem?y does

Please help me . Thanks


Accepted Solutions
Solution
‎08-17-2015 02:16 PM
SAS Super FREQ
Posts: 361

Re: Library does not exist despite using Unix forward slashes

Yes, that is it indeed. I often just grab the path from there whenever forming a libname since it will always be how the VM sees it!

Randy

View solution in original post


All Replies
SAS Super FREQ
Posts: 361

Re: Library does not exist despite using Unix forward slashes

Hi, smummadi. It appears that your are referencing your libname using its Windows path.

Instead, please try using the path to your myfolders area using the path as seen by your SAS University Edition virtual machine.

The easiest way to do this is to right-click on "myfolders" and then select Properties from the menu. The path you see there will be the one you want to use in your libname statement.

Here is a good document to help you:

How do I create my own SAS library?

Let us know if this works for you!

Thanks,

Randy

New Contributor
Posts: 3

Re: Library does not exist despite using Unix forward slashes

Randy,

Thanks for your answer.

A quick clarification - Do you mean right click on the myfolders in the left hand navigation pane of the SAS Studio Session?

Thank you so much!

I will try and let you know as soon as I can.

Sri

Solution
‎08-17-2015 02:16 PM
SAS Super FREQ
Posts: 361

Re: Library does not exist despite using Unix forward slashes

Yes, that is it indeed. I often just grab the path from there whenever forming a libname since it will always be how the VM sees it!

Randy

New Contributor
Posts: 3

Re: Library does not exist despite using Unix forward slashes

It is working. Thank you so much.

Sri

Frequent Learner
Posts: 1

Re: Library does not exist despite using Unix forward slashes

Thank you for your clarification 

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 5 replies
  • 694 views
  • 6 likes
  • 3 in conversation