Andrew Ratcliffe posted a fine article titled "Inadequate Mends" in which he extols the benefits of including the name of a macro on the %MEND statement. That is, if you create a macro function named foo, he recommends that you include the name in two places:
%macro foo(x); /** define the macro function **/ %mend foo; |
Did you know that the same option exists for SAS/IML modules? That is, if you want to be explicitly clear that you are ending a particular module definition, you can include the name of the module on the FINISH statement:
proc iml; start foo(x); /** define the SAS/IML module **/ finish foo; |