Ends a macro definition.
Type: |
Macro statement
|
Restriction: |
Allowed in macro definitions only
|
-
macro-name
-
names the macro as it ends a macro definition.
Repeating the name of the macro is optional, but it is useful for clarity.
If you specify macro-name, the name in the %MEND statement should
match the name in the %MACRO statement; otherwise, SAS issues a warning message.
%macro disc(dsn);
data &dsn;
set perm.dataset;
where month="&dsn";
run;
%mend disc;
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.