Date: Tue, 21 Jun 2005 04:16:07 GMT
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
Organization: SBC http://yahoo.sbc.com
Subject: Re: Creating a sas date
If you want first of the month, just do
datefield = mdy(bchmnth, bchyrr, 1);
"Jamie" <firstname.lastname@example.org> wrote in message
>I have two variables like this
> bchyrr and bchmnth
> 5 2
> 99 3
> 0 6
> 3 12
> How can I turn these into a a SAS date. i.e 5 2 becomes 16468?
> I know this is probably quite basic but I have no idea where to start.
> Thanks in advance