Chapter Contents |
Previous |
Next |
SAS/SHARE User's Guide |
Compiling Macros (SHRMACS) |
%SHRMACS(category,<log-info,>
<APPLSYS=app-sys-lib-tab,> <SASSAML=alt-sys-lib-tab>); |
where
Besides compiling the requested macros, the SHRMACS macro also builds the appropriate library-alias table and server-alias table. These tables are used for generating the server name for the PROC SERVER, PROC OPERATE and LIBNAME statements. Other SAS/SHARE Macros Generated by the SHRMACS Macro lists the categories of macros that can be compiled and the implicit macros that are generated, by category.
%SHRMACS(category) | Macros Generated | ||
---|---|---|---|
Server | User | Operator | |
SERVERID | |||
LISTLIB | |||
LISTSRV | |||
STRTSRV | |||
LIBDEF | |||
SHUTSRV | |||
OPERATE | |||
SETSRV | |||
SERVIIDX | |||
LISTSRVI |
For example, all of these macro definitions
%SHRMACS(SERVER) | |
%SHRMACS(USER) | |
%SHRMACS(OPER) |
However, only %SHRMACS(USER) generates the LIBDEF macro, only %SHRMACS(SERVER) generates the STRTSRV macro, and only %SHRMACS(OPER) generates the SHUTSRV, OPERATE, and SETSRV macros.
The SERVER category of macros generates the server-alias table; the OPER category of macros generates the library-alias table; and the USER category of macros generates both the server-alias and the library-alias tables.
Specifying the ALL category of macros generates all of the macros as well as both the server-alias and library-alias tables.
Server Macro Information shows information about the server macros, as listed in the SAS log.
LOG Command ===> 1085 %shrmacs (server,msg); *** SAS/SHARE macros are now available *** For further information about SAS/SHARE macros: %SHRMACS(ALL,HELP) - for information on all macros %SHRMACS(USER,HELP) - for information on macros used in user applications %SHRMACS(OPER,HELP) - for information on macros used with PROC OPERATE %SHRMACS(SERVER,HELP) - for information on macros used with PROC SERVER or %macro(HELP) - for information on a specific macro SAS/SHARE macros generated are: SERVERID - translate server alias LISTLIB - list library table LISTSRV - list server alias table STRTSRV - start a server SERVER ALIAS TABLE --- SERVER ALIAS ------- SERVERID ---------------------------- CESERV V6DSERVR COMSERV MYSERV DEVSERV MYSERV GLOSSERV V6DSERVR LIBSERV V6DSERVR MISSERV MYSERV PRDSERV V6DSERVR -------------------------------------------------------------- |
For more information about the macros that are compiled by SHRMACS, you can specify the HELP keyword, as shown in this example:
%shrmacs(server,help);
HELP lists the syntax, a brief description, and an example for each macro that SHRMACS defines in the SERVER category.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.