Reply To: How many SAS do loops you know?

#49302
rlochan2021
Keymaster

4.Do over loops with array

data test;
set temp;
array nvars _numeric_;
do over nvars;
if nvars > 3 then nvars = .;
end;
run;

courtesy- Listendata