Macros for SAS Application Developers File Reference

Increments a macro variable. More...

Go to the source code of this file.

Detailed Description

Useful outside of do-loops - will increment a macro variable every time it is called.


%let cnt=1;
%put We have run %mf_increment(cnt) lines;
%put Now we have run %mf_increment(cnt) lines;
%put There are %mf_increment(cnt) lines in total;
[in]MACRO_NAMEthe name of the macro variable to increment
[in]ITER=The amount to add or subtract to the macro

Related Files

Definition in file