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

Hello,

 

I allocating libref to remote SAS/SHARE like this:

 

%let node1=some_address some_port;

options comamid=tcp;

proc operate serverid=node1.sas_share sapw=some_password;

ALLOCATE LIBRARY TEST1 '/some/path';

 

And now I would like to know how to unallocate library. I know that I can use 'libname name clear' but this only make libref inactive. Like here:

 

 

                     NUMBER
LIBREF    STATUS    OF USERS  LIBRARY NAME
--------------------------------------------------------------------------------------------------
TEST1     INACTIVE     0      /some/path

 

 

I want to remove libref from sas/share memory/unallocate without restart SAS/SHARE (UNIX). How to do that?

1 ACCEPTED SOLUTION

Accepted Solutions
DaveHorne
SAS Employee

In proc operate use the "free" command:

 

proc operate serverid=node1.sas_share sapw=some_password;

FREE LIBRARY TEST1;

View solution in original post

2 REPLIES 2
DaveHorne
SAS Employee

In proc operate use the "free" command:

 

proc operate serverid=node1.sas_share sapw=some_password;

FREE LIBRARY TEST1;
blaszkam
Calcite | Level 5
It works. Thanks a lot! 🙂

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
  • 2 replies
  • 896 views
  • 0 likes
  • 2 in conversation