DATA Step, Macro, Functions and more

Library SAS_DATA does not exist

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 5
Accepted Solution

Library SAS_DATA does not exist

Received the error saying Library SAS_Data does not exist.

Iam using SAS studio and a Oracle VM virtual box. 

Stuck with this since an hour, kindly help.

 

I have my data in U drive under folder SAS_data

Accepted Solutions
Solution
‎03-15-2017 12:00 PM
SAS Super FREQ
Posts: 8,743

Re: Library SAS_DATA does not exist

Hi:

Here are some previous postings that outline how it works.
LIBNAME statement on Univ Edition:
https://communities.sas.com/t5/SAS-Analytics-U/Practice-datasets/m-p/148714#M412#216397
https://communities.sas.com/t5/SAS-Analytics-U/Absolute-beginner-watching-youtube-videos/m-p/149371#...
https://communities.sas.com/t5/General-SAS-Programming/Create-library/td-p/177530
https://communities.sas.com/message/258050#258050

Please read the postings. Your libname statement will NOT work. To read from your shared folder location, you MUST use

libname sas_data '/folders/myfolders/folder_name';

where you actually create a folder name in the shared folder location and you MOVE your data to that location. A location of /SAS is not valid for the University Edition.

cynthia

View solution in original post


All Replies
SAS Super FREQ
Posts: 8,743

Re: Library SAS_DATA does not exist

Hi:
You CANNOT use a local drive location. SAS in the Virtual Machine cannot see your U: drive.

Did you set up a shared folders location? In the installation instructions, you were asked to set up a shared folder location and/or also set up folder shortcuts. The way you access data will depend on which one of these methods you choose. But, your LIBNAME statement for the University Edition will typically always be something like this:
libname sas_data '/folders/myfolders/.....';
where the ..... indicates the rest of the path in either the shared folder location or the shortcut location.

Here are some previous postings that outline how it works.
LIBNAME statement on Univ Edition:
https://communities.sas.com/t5/SAS-Analytics-U/Practice-datasets/m-p/148714#M412#216397
https://communities.sas.com/t5/SAS-Analytics-U/Absolute-beginner-watching-youtube-videos/m-p/149371#...
https://communities.sas.com/t5/General-SAS-Programming/Create-library/td-p/177530
https://communities.sas.com/message/258050#258050

cynthia
Occasional Contributor
Posts: 5

Re: Library SAS_DATA does not exist

Hi,

I have set up the shared folder location in VM box to
"C:\Users\Sailesh\Desktop\SAS" and set Auto-mount and Make Permanent
options.

MY new code to set libname is libname sas_data '/SAS';


Receiving below error:
ERROR: The path /SAS is not in the list of accessible paths when SAS is in
the lockdown state.
ERROR: Error in the LIBNAME statement.


##- Please type your reply above this line. Simple formatting, no
attachments. -##
Solution
‎03-15-2017 12:00 PM
SAS Super FREQ
Posts: 8,743

Re: Library SAS_DATA does not exist

Hi:

Here are some previous postings that outline how it works.
LIBNAME statement on Univ Edition:
https://communities.sas.com/t5/SAS-Analytics-U/Practice-datasets/m-p/148714#M412#216397
https://communities.sas.com/t5/SAS-Analytics-U/Absolute-beginner-watching-youtube-videos/m-p/149371#...
https://communities.sas.com/t5/General-SAS-Programming/Create-library/td-p/177530
https://communities.sas.com/message/258050#258050

Please read the postings. Your libname statement will NOT work. To read from your shared folder location, you MUST use

libname sas_data '/folders/myfolders/folder_name';

where you actually create a folder name in the shared folder location and you MOVE your data to that location. A location of /SAS is not valid for the University Edition.

cynthia
☑ This topic is SOLVED.

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

Discussion stats
  • 3 replies
  • 132 views
  • 1 like
  • 2 in conversation