BookmarkSubscribeRSS Feed
JackiStudio
Calcite | Level 5

Hi there -

I'm very new to SAS Studio and trying to access data that I need for a course. This dataset was downloaded from Canvas (from my professor) and now I need to access it in SAS Studio. I've seen all the posts about referencing the file in which it lives, but that is not working for me. I don't have the normal C: folders, I have this:

Screen Shot 2019-10-06 at 12.27.33 PM.png).

 

I tried this code

libname HIM5623 '/Users/jackiadams/Desktop';
run;

But then I get this response. (Also, there is a library named HIM5623, so I'm not sure why I'm getting that.) Any information to help me get this dataset somewhere I can access it, would be greatly appreciated.Screen Shot 2019-10-06 at 12.30.54 PM.png

1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
70
71 libname HIM5623 '/Users/jackiadams/Desktop';
NOTE: Libref HIM5623 refers to the same physical library as MYDATA.
WARNING: Library HIM5623 does not exist.
NOTE: Libref HIM5623 was successfully assigned as follows:
Engine: V9
Physical Name: /Users/jackiadams/Desktop
72 run;
73
74
75 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
86
5 REPLIES 5
Shmuel
Garnet | Level 18

Locate the cursor on HIM5623 folder and right click to check proerties - you will get the right path to the folder,

to be used in the LIBNAME statement.

Reeza
Super User

You're trying to use your C drive (Desktop) with a cloud installation of SAS. It cannot see your C drive or anything on your computer. Instead, you need to find the correct path for the data set on the server and you can do that by right clicking the file and selecting properties.

 


@JackiStudio wrote:

Hi there -

I'm very new to SAS Studio and trying to access data that I need for a course. This dataset was downloaded from Canvas (from my professor) and now I need to access it in SAS Studio. I've seen all the posts about referencing the file in which it lives, but that is not working for me. I don't have the normal C: folders, I have this:

Screen Shot 2019-10-06 at 12.27.33 PM.png).

 

I tried this code

libname HIM5623 '/Users/jackiadams/Desktop';
run;

But then I get this response. (Also, there is a library named HIM5623, so I'm not sure why I'm getting that.) Any information to help me get this dataset somewhere I can access it, would be greatly appreciated.Screen Shot 2019-10-06 at 12.30.54 PM.png

1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
70
71 libname HIM5623 '/Users/jackiadams/Desktop';
NOTE: Libref HIM5623 refers to the same physical library as MYDATA.
WARNING: Library HIM5623 does not exist.
NOTE: Libref HIM5623 was successfully assigned as follows:
Engine: V9
Physical Name: /Users/jackiadams/Desktop
72 run;
73
74
75 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
86


 

Tom
Super User Tom
Super User

How could a folder named "my_datasets" have a path that ends in "Desktop"?

Reeza
Super User

@Tom wrote:

How could a folder named "my_datasets" have a path that ends in "Desktop"?


It can in SAS UE depending on what you name the shortcut in the virtual machine, but that's not relevant to this discussion as it's OnDemand for Academics as the first screenshot shows URL for OnDemand server. 

Reeza
Super User
If the data set is not already on the server, the little up arrow, 4th icon on first screenshot, will allow you to upload the file to the server.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 5 replies
  • 1356 views
  • 0 likes
  • 4 in conversation