First, I do have a variable, year of birth (i.e. without days and months of births). Second, I would like to derive age from the stated variable based on today’s date. I’ve attempted the derivation using the following code but I’ve been unsuccessful.
Data myage;
set suvdata;
AGE=floor(YRDIF(RB080, today(),"AGE"));
run;
I shall be most grateful for your help.