How do I create a variable "AGE" when using an external SAS data set via infile statement? The data set already has DOB in it. This is how far I've gotten... libname HW3 'c:\users\christopher\desktop\HW3'; data HW3.HW3_F18; label ID = "Subjects ID" RACE = "Subjects Race" DOB = "Subjects Date of Birth" FEV = "Subjects Fev" HEIGHT = "Subjects Height" GENDER = "Subjects Gender" WEIGHT = "Subjects Weight" DURATION = "Subjects Duration" WBCCOUNT = "Subjects WBCCount" MARITAL = "Subjects Marital Status" EDUCATION = "Subjects Education"; infile 'c:\users\christopher\desktop\HW3\hw3_f18.dat'; input ID Race $ DOB mmddyy10. FEV Height Gender $ Weight Duration WBCCOUNT Marital $ Education $20.; run; proc print data= HW3.HW3_F18; run;
... View more