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 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 4 replies
  • 2211 views
  • 2 likes
  • 3 in conversation