DATA Step, Macro, Functions and more

Data and subfolders not included in library

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 6
Accepted Solution

Data and subfolders not included in library

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?


Accepted Solutions
Solution
‎11-12-2016 09:00 PM
Super User
Posts: 19,822

Re: Data and subfolders not included in library

Posted in reply to mafiapainter

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


All Replies
Trusted Advisor
Posts: 1,571

Re: Data and subfolders not included in library

Posted in reply to mafiapainter

Did you created any sas dataset in it ?

Did you try refersh libraries list ?

 

Occasional Contributor
Posts: 6

Re: Data and subfolders not included in library

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.
Solution
‎11-12-2016 09:00 PM
Super User
Posts: 19,822

Re: Data and subfolders not included in library

Posted in reply to mafiapainter

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;

Occasional Contributor
Posts: 6

Re: Data and subfolders not included in library

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.
☑ This topic is solved.

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

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