Write and run SAS programs in your web browser

How to assign permanent lib and use SET statement..

Accepted Solution Solved
Reply
New Contributor
Posts: 3
Accepted Solution

How to assign permanent lib and use SET statement..

Hi, I am new to sas base programming. I am using SAS studio to study. I have been trying to use the external data files but first assign this as permanent so that I can use the data using SET statement. I know how to assign a permanent library but not while using SET statement. Could anyone please help me with it?

 


Accepted Solutions
Solution
‎09-25-2015 06:23 AM
Grand Advisor
Posts: 17,332

Re: How to assign permanent lib and use SET statement..

Did you follow the set up instructions exactly? Is your shared folder defined properly? When you start up SAS UE on the orange screen do you see a warning about a Shared Folder myfolders being set up?

Your data and library should reside in that myfolders location and since SAS UE is on a Unix VM you need to ensure that you match the case of the folder/path and that you're reference it using "/" rather than the Windows path. Post your code if you're having issues. Also please review posts under Learning where other users have had issues with setting this up, it's a VERY common question here.

View solution in original post


All Replies
Grand Advisor
Posts: 17,332

Re: How to assign permanent lib and use SET statement..

Are you using SAS UE?

 

Set up a library as:

 

libname mylib 'path to folder with sas datasets';

data want;
set MYLIB.MYDATA;
run;
New Contributor
Posts: 3

Re: How to assign permanent lib and use SET statement..

 Yeah I am. I tried that but it says the data is not present. What I did is I uploaded the external file directly to the folder that is defined in the libname. and did the same step as you have suggested.

Solution
‎09-25-2015 06:23 AM
Grand Advisor
Posts: 17,332

Re: How to assign permanent lib and use SET statement..

Did you follow the set up instructions exactly? Is your shared folder defined properly? When you start up SAS UE on the orange screen do you see a warning about a Shared Folder myfolders being set up?

Your data and library should reside in that myfolders location and since SAS UE is on a Unix VM you need to ensure that you match the case of the folder/path and that you're reference it using "/" rather than the Windows path. Post your code if you're having issues. Also please review posts under Learning where other users have had issues with setting this up, it's a VERY common question here.
New Contributor
Posts: 3

Re: How to assign permanent lib and use SET statement..

 Thanks Smiley Happy

☑ This topic is SOLVED.

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

Discussion stats
  • 4 replies
  • 456 views
  • 0 likes
  • 2 in conversation