Create a member in the
APPLSYS macro library for each application system that is specified
by the APPLSYS= argument in the SHRMACS macro. Doing this defines
library-server pairs that a specific application will probably use.
For example, you can specify an APPLSYS library named PURCH in the
SHRMACS macro as follows:
%SHRMACS(user,APPLSYS=purch);
If you do this, you also create a member in the APPLSYS library of
the same name (in this example, PURCH).
In a selected member,
use the following syntax to specify the library and server name pairs.
%SERVLIB(SAS-library, server-name);
SAS-library is specific to the operating environment.
server-name can be a server ID or its alias.
The following code contains
a member named PURCH, which references operating environment-specific
SAS library names.
Library-Alias Table
/**********************************************************************/
/* */
/* NAME: PURCH */
/* */
/* LIBRARY TABLE ENTRIES - SPECIFIC APPLICATION */
/* */
/* This member associates server names with libraries. The entries */
/* in this member are loaded into the library table if the */
/* SHRMACS macro is called by using the argument APPLSYS=APPLSAMP.*/
/* If APPLSYS=APPLSAMP is specified, the entries can also be */
/* loaded by using a call to the LIBDEF. */
/* */
/* To add libraries to the definition table, add a SERVLIB call */
/* for each library at the end of this member. Specify the */
/* physical name for the library and the name of the server to be */
/* associated with the library. The name can be an alias or an */
/* actual server ID. */
/* */
/**********************************************************************/
%servlib(shrtest.appljan.lib1, testserv); # z/OS
%servlib(/shrtest/appljan/lib1, testserv); # UNIX
%servlib(d:\shrtest\appljan\lib1, testserv); # Windows
To add aliases to the
table, use a SERVLIB call for each library-server pair.
Additionally, create
a member in the APPLSYS macro library named DEFAULTS. This member
can be empty but must be created to avoid having error messages generated
from the SHRMACS macro.
The DEFAULTS member
is used when the APPLSYS= argument is omitted in a call to the SHRMACS
and LIBDEF macros. The syntax of the PURCH and the DEFAULTS members
is identical.