Here's my code! When I run the code, I'm not getting any errors or results. I'm not sure what I did wrong. The question says to create a new sas data set called AGES that contains all the variables in ABC_CORP plus three new variables. One is AGE_ACTUAL, which is the exact age from DOB to January 15, 2005. The second is AGE_TODAY, which is the age as of the date the program is run, rounded to the nearest tenth of the year. The third is AGE, with the fractional part dropped, as of the date stored in the variable VISIT_DATE. ***Program to create data set ABC_CORP; DATA ABC_CORP; DO SUBJ = 1 TO 10; DOB = INT(RANUNI(1234)*15000); VISIT_DATE = INT(RANUNI(0)*1000) + '01JAN2000'D; OUTPUT; END; FORMAT DOB VISIT_DATA DATE9.; RUN; ***program to create data set AGES; DATA AGES; AGE_ACTUAL=YRDIF(DOB,'15JAN2005'D,'ACTUAL'); AGE_TODAY= ROUND(YRDIF(DOB,TODAY(),'ACTUAL'),.1); AGE= INT(AGE); VISIT_DATE= INT(RANUNI(0)*1000)+ '01JAN2000'D; RUN;
... View more