Created
August 4, 2016 15:47
-
-
Save ymattu/4d35a137c8226329ea2cc49334fc7517 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 chloop; | |
%let loopval= A B C D E; | |
%do i=1 %to %sysfunc(countw(&loopval)); | |
%let j=%scan(&loopval,&i); | |
data mydata&j; | |
A=1; | |
run; | |
%end; | |
%mend; | |
%chloop; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment