10-29-2017 01:51 PM
I have a set of data with customer name, birth_date. I need to create a few new variables, Bday2009, BdayDOW2009 and Age2009.
How shall I write the codes?
Pardon as I am new to SAS and this is my school assignment which am now having diffculities in solving. Thanks advance for any help given.
10-29-2017 02:30 PM
the Birth_date is in date9, format (example; 12July1974),
i am stacked at creating the Bday2009 variables as I need to combine the day and month of birth_date with a constant year of 2009,
Birth_date=myd(month,3, day,2, year,4);
Bday2009=day month year;
Tried several ways but still can’t get it...