%macro aaaa();
data a;
array new{4} score1-score4;
%do i=1 %to dim(new) %by 1;
new{i}=10;
%end;
proc print data=a;
run;
%mend aaaa;
%aaaa();
log window:
MPRINT(AAAA): array new{4} score1-score4;
ERROR: Required operator not found in expression: dim(new)
ERROR: The %TO value of the %DO I loop is invalid.
ERROR: The macro AAAA will stop executing.
... View more