Last active
August 29, 2015 14:05
-
-
Save rkoopmann/550fd2062bcf349ec5ee to your computer and use it in GitHub Desktop.
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 split(Value); | |
%if %index(&value,~) %then %do; | |
%let lower=%scan(&value,1,~); | |
%let upper=%scan(&value,2,~); | |
%end; | |
%else %do; | |
%let lower=0; | |
%let upper=&value; | |
%end; | |
%put lower value: &lower; | |
%put upper value: &upper; | |
%mend; | |
%macro test(values); | |
%do_over(values=&Values, phrase= | |
%split(?); | |
); | |
%mend; | |
option nomprint nomlogic; | |
%test(low high); | |
%test(low~high); | |
%test(low~100); | |
%test(0~high); | |
%test(0~100); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment