data want;
set repeat;
by month irri;
retain rep1-rep3;
array resp(*) rep1-rep3;
do i = 1 to dim(resp);
if first.irri then resp(i)=.;
end;
if response ne . then resp(rep)=response;
if last.irri;
drop rep response i;
run;
Thanks, Jag
Catch up on SAS Innovate 2026
Nearly 200 sessions are now available on demand with the SAS Innovate Digital Pass.