Skip to content

Instantly share code, notes, and snippets.

@ymattu
Created August 4, 2016 15:39
Show Gist options
  • Save ymattu/11e497a69d1dc289e6af3d347a995ecd to your computer and use it in GitHub Desktop.
Save ymattu/11e497a69d1dc289e6af3d347a995ecd to your computer and use it in GitHub Desktop.
%macro dloop;
%let loopval=1 2 3 5;
%do i=1 %to %sysfunc(countw(&loopval));
%let j=%scan(&loopval,&i);
data mydata&j;
A=1;
run;
%end;
%mend;
%dloop;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment