| 1. |
What Is Auto Call Macro And How To Create A Auto Call Macro? What Is The Use Of It? How To Use It In Sas With Macros? |
|
Answer» SAS ENABLES the user to call macros that have been stored as SAS programs. The AUTO call macro facility allows users to access the same macro code from MULTIPLE SAS programs. Rather than having the same macro code for in each program where the code is required, with an autocall macro, the code is in one location. This permits faster updates and better consistency across all the programs.Macro set-up:The fist step is to set-up a program that contains a macro, desired to be used in multiple programs. Although the program MAY contain other macros and/or OPEN code, it is advised to include only one macro. Set MAUTOSOURSE and SASAUTOS: Before one can use the autocall macro within a SAS program, The MAUTOSOURSE option must be set open and the SASAUTOS option should be assigned. The MAUTOSOURSE option indicates to SAS that the autocall facility is to be activated. The SASAUTOS option tells SAS where to look for the macros. For ex: sasauto=’g:busmeasinternalmacro’. SAS Enables the user to call macros that have been stored as SAS programs. The auto call macro facility allows users to access the same macro code from multiple SAS programs. Rather than having the same macro code for in each program where the code is required, with an autocall macro, the code is in one location. This permits faster updates and better consistency across all the programs.Macro set-up:The fist step is to set-up a program that contains a macro, desired to be used in multiple programs. Although the program may contain other macros and/or open code, it is advised to include only one macro. Set MAUTOSOURSE and SASAUTOS: Before one can use the autocall macro within a SAS program, The MAUTOSOURSE option must be set open and the SASAUTOS option should be assigned. The MAUTOSOURSE option indicates to SAS that the autocall facility is to be activated. The SASAUTOS option tells SAS where to look for the macros. For ex: sasauto=’g:busmeasinternalmacro’. |
|