@PGStats. Would endtime variable be initialized as zero or missing at the beginning? endTime = max(endTime, end); I checked it initializes with missing value. I also wonder how to check what is going on during one complete dow-loop interation? I also read DOW-LOOP does automatic retain, how does it do that? data want;
length roomList $64;
put _all_;
do until (last.building);
set have;
by building notsorted;
roomList = catx(", ", roomList, room);
endTime = max(endTime, end);
end;
put _all_;
keep building roomList endTime;
rename roomList=room endTime=end;
run;
... View more