BookmarkSubscribeRSS Feed
Luna4321
Calcite | Level 5

Hi, 

If I write below syntax but it always have the errors. Could anyone help me? Thanks in advance

libname mylib "/folders/myfolders";
Luna4321_0-1682778190067.png

 

 

3 REPLIES 3
PaigeMiller
Diamond | Level 26

The folder does not exist.

 

You want to use the name of an actual folder that exists in your LIBNAME statement.

 

(Also, this is not an ERROR, it is a NOTE.)

--
Paige Miller
AhmedAl_Attar
Ammonite | Level 13

@Luna4321 

If my memory serves me right, your Libname statement reflects how it's used to be done using SAS University Edition. For SAS ODA, you would use

libname mylib "$HOME";

Which would point to your /home/??/?? Home directory, with you being the only one with access to it

 

Hope this helps 

Cynthia_sas
SAS Super FREQ

Hi:

  On SAS OnDemand for Academics, there is a top folder with the name Files (Home), which is the place where the student's files can be uploaded and programs and other work can be saved.

 

  When using SAS Studio, you can do a right-click on Files (Home) and select Properties and the Location field in the Properties window should show you the unique path name for the student account. For example, in this screen shot, the Location field of the Properties window reveals that the physical server path for the Files (Home) top folder is /home/<your userid>

Cynthia_sas_0-1682787935048.png

So that means if the student has an old style userID that path could be: /home/johndoe0 or /home/Smith230. but if they student has a new style userID, then the path in the Location field might be u1234567 or u9876543. One way to represent the physical path for this location is to use the tilde or ~ symbol in the path.

  There are some subfolders under this top Files (Home) location, so let's take a look at some of these subfolders.

1) Path for EPG1C2 subfolder:

Cynthia_sas_1-1682788170626.png

So, if the userID was u1234567, then the path would be /home/u1234567/EPG1V2 or using the alternate ~ symbol, would be ~/EPG1V2. Note if you use home as the first level, you MUST have a leading slash. If you use ~ (tilde) to replace the /home/userID portion of the path, then there is NOT any leading slash.

2)  Path for data subfolder under EPG1V2 folder

Cynthia_sas_2-1682788315418.png

So again, this path would be /home/u1234567/EPG1V2/data or, using the tilde would be: ~/EPG1V2/data

 

3) Path for the all_output folder under Files (Home)

Cynthia_sas_3-1682788497348.png

This folder is directly under the Files (Home) top folder, so the path is /home/u1234567/all_output with a student whose userID is u1234567 or to use the tilde, the path would be ~/all_output

 

  Just remember to use the Properties method to ALWAYS be able to find out the correct path for a file or folder in SAS Studio on the SAS OnDemand server.

Cynthia

 

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 540 views
  • 5 likes
  • 4 in conversation