Created
September 30, 2019 14:04
-
-
Save appikonda/dde7d73231574ec09345e313749d6dac to your computer and use it in GitHub Desktop.
macros
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%macro test(start, finish, inc, limit); | |
%let y=0; | |
%end; | |
%do i= %sysevalf(&start) %to %sysevalf(&finish);/* %by &inc;*/ | |
%if (&y < &limit) %then %do; | |
%let y = %SYSEVALF(&i**2); | |
%put the value of i is &i , &y; | |
%let start =%SYSEVALF(&i+ &inc); | |
%put the value of start is &start; | |
%end; | |
%ELSE %DO; | |
%PUT in else; | |
%end; | |
%end; | |
%mend test; | |
%test(1, 5, 1, 20) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment