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

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 2 replies
  • 713 views
  • 0 likes
  • 2 in conversation