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

Hi, I am new to SAS Enterprise Guide. I am trying to create a library using a LIBNAME statement  in SAS Enterprise guide on a server but I do not see it created. I cannot create one through the explorer as I not not have rights. What is the right way to create a library on the server? 

1 ACCEPTED SOLUTION

Accepted Solutions
Kurt_Bremser
Super User

Several steps are necessary to create a library.

First, the physical location must exist. On Windows and UNIX systems this is a directory in a filesystem.

If it shall be a new library, you need read/write/execute permissions on the parent directory and have to create that directory; either from the systems tools (eg Windows Explorer) or from the commandline (remote login to UNIX), or using SAS tools or X / CALL SYSTEM.

Second, you need to have the necessary permissions ("read" and "execute" on UNIX, "write" if creation/overwrite of datasets is wanted)

Third, if you want that library to be "permanent":

- if for all users, have your administrator include it it in the general setup (metadata, autoexec files)

- if only for you, add it to the code sent to the server when the server is started (Tools - Options)

View solution in original post

2 REPLIES 2
Reeza
Super User

You need rights on the server, so you probably need to have the administrator create the library.

You can create a library via code, but if you don't have rights it probably won't work.

 

libname libdef "path to library";
Kurt_Bremser
Super User

Several steps are necessary to create a library.

First, the physical location must exist. On Windows and UNIX systems this is a directory in a filesystem.

If it shall be a new library, you need read/write/execute permissions on the parent directory and have to create that directory; either from the systems tools (eg Windows Explorer) or from the commandline (remote login to UNIX), or using SAS tools or X / CALL SYSTEM.

Second, you need to have the necessary permissions ("read" and "execute" on UNIX, "write" if creation/overwrite of datasets is wanted)

Third, if you want that library to be "permanent":

- if for all users, have your administrator include it it in the general setup (metadata, autoexec files)

- if only for you, add it to the code sent to the server when the server is started (Tools - Options)

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!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 2 replies
  • 16840 views
  • 1 like
  • 3 in conversation