Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to automatically assign libraries in SAS Enterprise Guide?

In the Server List of my SAS Enterprise Guide session I have a white (unassigned) library which I can right-click to assign. Is there a programming statement, perhaps a libname statement, or task, that I can use in an EG project to automate this step?

like image 514
jl6 Avatar asked Dec 20 '22 22:12

jl6


2 Answers

Open SAS Management Console.

Go to Data Library Manager, find the library you want to modify, right-click for Properties.

Go to Options tab - click Advaced Options button - check Library is Pre-Assigned checkbox.

You should have METAAUTORESOURCES option enabled on your application server.

like image 55
vasja Avatar answered Jan 16 '23 17:01

vasja


On the presumption that your libraries are white but already assigned - ie that you have to right-click 'assign' to gain access (and they turn yellow). You can automatically assign in code using a 'meta' libname statment. Something along the lines of this should work:

libname MYLIB meta LIBRARY=MYLIB;

Of course you could change the 1st MYLIB to any lib reference you want but it makes sense to keep them the same as the pre-assign by IT.

like image 23
Tammboy Avatar answered Jan 16 '23 19:01

Tammboy