BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
Ronein
Onyx | Level 15

Hello

I would like to create a new library called PanelOsh .

The following code is not creating the library folder

libname AAA  '/usr/local/SAS/SASUsers/LabRet/Credit_Scoring_Users/PanelOsh';

What is the way to create the library folder?

 

When I click right click on library then I dont see option to create a new folder (The library name)

Ronein_0-1715243691901.png

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
3 REPLIES 3
Ronein
Onyx | Level 15

I found the solution!~

options dlcreatedir;
libname PanelOsh "/usr/local/SAS/SASUsers/LabRet/Credit_Scoring_Users/";

Is it necessary to write options dlcreatedir?? Why?>

Kurt_Bremser
Super User

@Ronein wrote:

I found the solution!~

options dlcreatedir;
libname PanelOsh "/usr/local/SAS/SASUsers/LabRet/Credit_Scoring_Users/";

Is it necessary to write options dlcreatedir?? Why?>


Maxim 1: Read the Documentation.

On Windows and UNIX, the default is NODLCREATEDIR.

Kurt_Bremser
Super User

With system option DLCREATEDIR set, the directory will be created when the LIBNAME statement is issued. You must, of course, have the necessary permissions in the filesystem.

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

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