Thank you! I also realized after I posted that I should be using v{i}. Whoops. I found that this would also work. data want; set Henry; array v{*} &rounded_scores; do i = 1 to dim(v); if v{i} ne . then do; v{i} = max(0, min(3, v{i})); end; end; drop i; run;
... View more