Intermediate and Advanced SAS® Macros
Steven First, Katie Ronk, Devices Seminar Consultants, Madison, ' Abstract
This hands-on workshop presents several intermediate-to-advanced macro topics just like macro referencing environments, macro interfaces (SYMGET, SYMPUT, IMPLEMENT, RESOLVE, PROC SQL), macro quoting, and macro features. Good techniques and alternatives to macros are also discussed. After a brief lecture, guests will conduct hands-on physical exercises until the end of the program.
The SAS® coding language contains a rich tool kit of features that can give a lot of power to the user. The SAS macro language can be used to generate and alter BARRIERE code. By simply combining the two of these languages the consumer can generate some very powerful systems. Merging these two different languages can be daunting however. This workshop is going to concentrate on the interfaces obtainable between the SAS macro terminology and other system components.
SAS Macro Overview
OBSTACLE macros build input for the BARRIERE compiler. Several functions from the SAS macro processor should be pass symbolic values between SAS assertions and actions, to establish default symbolic principles, to conditionally execute BARRIERE steps, also to invoke long, complex code in a quick, short method. It should be noted that the macro cpu is the SAS system module that processes macros and the SAS macro languages is definitely how you speak with the cpu. Without macros it is not easy to substitute adjustable text in statements just like TITLEs, to communicate around SAS methods, to establish standard values, and conditionally execute SAS step. Macros can accomplish this and also conceal complex code that can be invoked easily. With no macros, SAS programs are DATA and PROC measures that are sought one declaration at a time trying to find the beginning of step (step boundary). When the starting of stage is found, most statements in the step happen to be compiled and
this carries on until when the end of step is located...