/******************* URBAN INSTITUTE MACRO LIBRARY *********************
: Note_mput
Macro: Write a macro-generated note message to the SAS LOG
Description
using %PUT.
: Open code; Within macro
Use
: Peter Tatian
Author
***********************************************************************/
Note_mput(
%macro Macro=, /* Macro name */
Msg= /* Note message */
);
/*************************** USAGE NOTES *****************************
:
SAMPLE CALLNote_mput( macro=MyMacro, Msg=This is a note. )
%*********************************************************************/
/*************************** UPDATE NOTES ****************************
11/07/04 - If Macro= parameter blank, does not include [macroname] in
message. 09/07/05 - Reformatted so that message will be displayed in color
in SAS Enhanced Editor.
*********************************************************************/
***** ***** ***** MACRO SET UP ***** ***** *****;
%
%local SYL1 SYL2;
***** ***** ***** ERROR CHECKS ***** ***** *****;
%
***** ***** ***** MACRO BODY ***** ***** *****;
%
= NO;
%let SYL1
%if %length( ¯o ) = 0 %then %do;
= TE:;
%let SYL2
%end;%else %do;
= TE: [&Macro];
%let SYL2
%end;
&SYL1&SYL2 &Msg;
%put
%mend Note_mput;
/************************ UNCOMMENT TO TEST ***************************
Note_mput( macro=MyMacro, Msg=This is a note. )
%/**********************************************************************/
Write Note Message to Log
Purpose: Write a macro-generated note message to the SAS LOG using %PUT.