BookmarkSubscribeRSS Feed
Josh
Calcite | Level 5
SAS EG is a new environment for me and I am intrigued by the Server List window and its entries. As a concept they seem to me to represent objects, perhaps a loose abuse of terminology, which contain the elements of what constitute a LIBNAME statement in code, but are maintained by the SAS 'DBA'. Presumably their contents represent the most efficient means of assigning the libraries taking into account the overall system environment and hence the parameters have been established by the 'DBA'.

Most programs which I am dealing with contain, in the header comment section, a list of libraries to be assigned, i.e. where their icon is not coloured yellow by default. Is there a mean whereby one can programmatically from with a SAS program apply the Assign method to such libraries. Seeing as most of the entries in my Server List are coloured yellow, and hence pre-assigned, that would be happening from a configuration or autoexec process so I feel it must be possible. Having to manually right mouse click and the Assign libraries seems somewhat inefficient, e.g. if one forgets to assign all referenced libraries then the program bombs.

I guess the alternate approach would be to copy the fields on the Properties window for a particular library into a LIBNAME statement but then if the DBA changes the properties to something else such a LIBNAME statement would no longer correspond with the contents of the Server List entry.
2 REPLIES 2
Josh
Calcite | Level 5
May I also add another query about the Server List window? Presumably there is a configuration file or catalogue entry containing its contents. If so can it be read by a data step and how does one reference it?
ChrisHemedinger
Community Manager
Josh,

Welcome to EG.

First, there is not really a way to programmatically read the contents of the Server List window.

The libraries you see there are:
- live libraries, yellow icons, already assigned
- "potential" libraries, defined in metadata, not yet assigned but that EG will assign on-demand as you interact with them. These are white icons instead of yellow. Hope your eyes are good enough to catch the subtle difference.

To write SAS programs that use these libraries, obviously they must be assigned. You can assign in code or petition the SAS administrator to mark the library you need as "pre-assigned" in metadata, which will cause SAS to assign it when you invoke your workspace session.

There is lots more information in the SAS BI Administration Guide; check the chapters about the desktop clients.

Chris
It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 717 views
  • 0 likes
  • 2 in conversation