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! 🙂

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1227 views
  • 0 likes
  • 2 in conversation