Date: Fri, 18 Jan 2002 12:42:41 -0000
Reply-To: Roland <roland.rashleigh-berry@VIRGIN.NET>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Roland <roland.rashleigh-berry@VIRGIN.NET>
Organization: Virgin Net Usenet Service
Subject: Re: age calculations etc
Just subtract one from the other since a date in SAS is just an integer.
"David Yeates" <firstname.lastname@example.org> wrote in message
> Hi All,
> I have been puzzling over the following...
> Given the birth-date and another reference date refer-date I can calculate
> the exact age using that old favourite macro
> %macro age(birth, refer);
> %mend age;
> where &birth and &refer are the two dates. Now what I need having
> calculated the age is exactly how many days are there from the birthday in
> the year corresponding to refer-date to refer-date itself.
> Any ideas very welcome.
> Kind regards
> UHCE, Oxford University