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?
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With