BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
mafiapainter
Fluorite | Level 6

I am trying to create a new library. I am using the below code :

SAS1.PNG

The library "sampledata" is shown below :

sas2.PNG

After execution the new library is created as below :
sas3.PNG

As you can see, the library created does not include the subfolder and files as in "sampledata".

Below is the Log window :
sas4.PNG

Could anyone please let me know why this is happening ?

Your help will be much appreciated?

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

Libraries only SHOW SAS objects in the pane. Sub folders and said contents are not included. 

 

When you create a SAS dataset in the library you will see it. 

 

The csv files are technically in the library but aren't SAS datasets so can't be used until they're explicitly imported. 

 

Data class1.class;

set sashelp.class;

run;

View solution in original post

4 REPLIES 4
Shmuel
Garnet | Level 18

Did you created any sas dataset in it ?

Did you try refersh libraries list ?

 

mafiapainter
Fluorite | Level 6
No there was no SAS dataset in it. I tried to read the csv file and create the SAS dataset which is now reflecting in the same library. Thanks for your help.
Reeza
Super User

Libraries only SHOW SAS objects in the pane. Sub folders and said contents are not included. 

 

When you create a SAS dataset in the library you will see it. 

 

The csv files are technically in the library but aren't SAS datasets so can't be used until they're explicitly imported. 

 

Data class1.class;

set sashelp.class;

run;

mafiapainter
Fluorite | Level 6
Thanks for your response. There were no SAS datasets in "myfolders". I imported a csv file and create the SAS dataset in "class1" library which is now reflecting in the same library. Thanks for your help.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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
  • 4 replies
  • 1860 views
  • 2 likes
  • 3 in conversation