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

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
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.

View solution in original post

3 REPLIES 3
Ronein
Meteorite | Level 14

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.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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