Chapter Contents |
Previous |
Next |
SAS/SHARE User's Guide |
Compiles other SAS/SHARE macros.
Syntax |
Note:
The SHRMACS macro must be invoked before any other
SAS/SHARE
macro.
%SHRMACS category, <log-info>,
<APPLSYS=app-sys-lib-tab . . .>, <SASSAML=alt-sys-lib-tab...>); |
The SHRMACS macro generates and compiles the SAS/SHARE macros according to the following parameters:
The HELP argument displays detailed information about the SAS/SHARE macros that are generated. This includes the syntax, a brief description, and an example of each macro that is generated by the first argument.
The SHRMACS macro also loads the applications systems tables that associate aliases with server names and libraries with aliases. These tables are used to generate the server name for the PROC SERVER, PROC OPERATE, and LIBNAME statements. Based on what is specified in the first argument, the server-alias and library-alias tables may be written to the SAS log if you specify the MSG or the HELP argument in the SHRMACS macro.
%shrmacs(user); %shrmacs(user,help); %shrmacs(oper,help); %shrmacs(server,msg); %shrmacs(all,msg);
The SHRMACS macro also obtains the current settings of the NOTE, SOURCE2, and LINESIZE= SAS options in order to restore them later. SHRMACS invokes PROC SQL early in its execution to obtain the settings of these options and to save them in macro variables named _NOTES_, _SRC2_, and _LS_, respectively. The original values are restored after the settings have been changed by SHRMACS or other SAS/SHARE macros. You can avoid the overhead of this PROC SQL step by explicitly setting the macro variables to the desired values, as shown here:
%let _notes_=notes; %let _src2_=nosource2; %let _ls_=70;
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.