Why Use Macros for Server Library Access?
Programs that use SAS/SHARE software must include a LIBNAME statement to identify the SAS/SHARE server through which a library is to be accessed. Adding servers and changing serverids can require users and server administrators to obtain current serverid information each time they want to access a server. Thus, maintaining production or utility programs can be very difficult. Moreover, although there is no permanent connection between a SAS library and a given server, there is frequently a logical one. Programmers, server administrators, and users may always want a library to be accessed through the same server, particularly because only one server can provide access to a library at a time. The same logical connection can also exist between a group of users and a server. It may be desirable or necessary for all the members of a department to use the same server, especially if they are sharing libraries. To make the most of SAS/SHARE software without compromising performance, administra