I'm trying to code a macro on SAS that is able to create 50 different sample of 1500 people. But as soon as I enter %macro
, all the following code is not taken into account properly (PROC SURVEYSELECT
, DATA
, RUN
... Do not have any color anymore). You'll find below my code, can you please have a look?
%macro loop(50);
%do i=1 %to 50;
PROC SURVEYSELECT DATA=WORK.TOP_1()
METHOD=SRS
OUT= WORK.ALEA_1
N=1500;
RUN;
%end;
%mend;
%loop(50);