79718849

Date: 2025-07-29 15:23:26
Score: 2.5
Natty:
Report link

Maybe a macro program looping to create new datasets named 1 to 27, keeping id and variables named like the index, like the one below could help?


%macro createsubdata();

%DO j = 1 %TO 27;

data have&j;
set have;
keep id M&j:;
run;

%END;

%mend;

%createsubdata();
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Luigi