Define variables using a by statement on SAS OnDemand for academics libname patients '/home/u63367626/PATIENTS'; data patients.patt1; set patt2; format dob1 date9.; dob=compress(cat(month,'/',day,'/',year)); dob1=input(dob,mmddyy10.); age = yrdif(dob1,'01jan2023'd)/365; run; output; =2; output; run; /*evaluating the statistical parameters for age*/ proc sort data=patients.patt1; by ; run; proc means data=patients.patt1; variables age; output out= agestsatz; by ; run;
... View more