Data structure:
PatientUniqueID year variable 1 variable2 ... variableN
001 1980 3 4
l****u 发帖数: 529
2
data a;
input PatientUniqueID $ year V1-Vn;
cards;
001 1980 3 4
;
data b(drop=i);
set a;
do i=1 to 12;
month=i;
output;
end;
run;
proc print data=b;
run;