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

Hi experts

 

In our organisation some of the VAusers use the manuel import of data in the Data Exploration Tab a lot. Unfortunately they do not always remove data again when finish exploring. And a restart of the LASR-server wipes all manuel imported data resulting in growing amount of registered tables in the administraton tab in the VA hub. We also use Autoload.

 

I would like to create a SAS program that list all tables registered in a LASR server library and then check if they are loaded to memory in the LASR server and if not deletes the metadata registration for the table.

 

 

 

Have anyone already created a program to do something like that? 

 

We are runnning VA 7.3 (SAS 9.4)

Thanks

Lars

 

1 ACCEPTED SOLUTION

Accepted Solutions
BrunoMueller
SAS Super FREQ

Hi

 

How about using Proc METALIB, see below for an example.

I assume that the list of libraries user can add their data is limited and can be hardcoded in the code.

 

The NOEXEC will not run the update rule, but will report what would be done.

 

proc metalib;
   omr ( LIBRARY="Visual Analytics Public LASR" );
   update_rule = (delete noadd noupdate);
   report = ( type=summary );
   noexec;
run;

You need to have a connection to the Metadata Server in order to run this code.

 

Bruno

View solution in original post

2 REPLIES 2
BrunoMueller
SAS Super FREQ

Hi

 

How about using Proc METALIB, see below for an example.

I assume that the list of libraries user can add their data is limited and can be hardcoded in the code.

 

The NOEXEC will not run the update rule, but will report what would be done.

 

proc metalib;
   omr ( LIBRARY="Visual Analytics Public LASR" );
   update_rule = (delete noadd noupdate);
   report = ( type=summary );
   noexec;
run;

You need to have a connection to the Metadata Server in order to run this code.

 

Bruno

LarsEB
Fluorite | Level 6
Hi Bruno,

Thanks for your reply. It solved my problem pretty easy 🙂

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!

Tips for filtering data sources in SAS Visual Analytics

See how to use one filter for multiple data sources by mapping your data from SAS’ Alexandria McCall.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 2388 views
  • 5 likes
  • 2 in conversation