Date: Tue, 21 Jun 2005 04:16:07 GMT
Reply-To: kenneth_m_lin@SBCGLOBAL.NET
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: kenneth_m_lin@SBCGLOBAL.NET
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" <longj@aisl.uk.com> wrote in message
news:1119284899.410931.326400@g14g2000cwa.googlegroups.com...
>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
>
> Jamie
>
|