jl6
jl6

Reputation: 6394

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?

Upvotes: 4

Views: 15518

Answers (3)

Tammboy
Tammboy

Reputation: 331

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.

Upvotes: 5

Michael B.
Michael B.

Reputation: 61

Open SAS Enterprise Guide

Tools --> Options

Go to SAS Programs in left pane

Check box next to Submit SAS code when server is connected

Go to Edit next to Submit SAS code when server is connected

Add libname statement libname lib 'directory';

Save

Hope this helps.

Upvotes: 3

vasja
vasja

Reputation: 4792

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.

Upvotes: 5

Related Questions