Date: Wed, 15 Oct 2008 06:41:27 -0700
Reply-To: "dc353@hotmail.com" <dc353@HOTMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "dc353@hotmail.com" <dc353@HOTMAIL.COM>
Organization: http://groups.google.com
Subject: Re: problem with sysdate and today()
Content-Type: text/plain; charset=ISO-8859-1
On Oct 14, 2:05 pm, snoopy...@GMAIL.COM (Joe Matise) wrote:
> What system are you running SAS on?
>
> -Joe
>
> On Tue, Oct 14, 2008 at 12:50 PM, dc...@hotmail.com <dc...@hotmail.com>wrote:
>
> > On Oct 14, 8:21 pm, hs AT dc-sug DOT org ("Howard Schreier)" wrote:
> > > On Tue, 14 Oct 2008 09:06:51 -0700, dc...@hotmail.com <dc...@HOTMAIL.COM>
> > wrote:
> > > >On Oct 14, 7:58 pm, "dc...@hotmail.com" <dc...@hotmail.com> wrote:
> > > >> Hi,
>
> > > >> not quit sure what's going on. Here's the log from two %put
> > > >> statements:
>
> > > >> 192 %Put &sysdate;
> > > >> 14OCT08
> > > >> 193 %put %sysfunc(today());
> > > >> 12340
>
> > > >> not sure how to format 12340 in open code but as a date 12340 =
> > > >> 14OCT93
>
> > > >> Why would sysdate and today function return different dates??
>
> > > >same problem - better example:
>
> > > >194 %Put &sysdate;
> > > >14OCT08
> > > >195 %put %sysfunc(today(),date9);
> > > >14OCT1993
>
> > > 1. Start SAS
> > > 2. Dial back the computer's clock 15 years
> > > 3. Run code
>
> > Howard,
>
> > I reset the clock back to 1993, started SAS, reran code. Got 1993
> > from both put statements. I then terminated SAS, reset clock to
> > 2008 , started SAS, and reran code. Got 2008 from sysdate and 1993
> > from today(). Still not sure what's causing the problem
Joe,
I'm running SAS8.2 on a dell PC running windows xp sp2
I try the same code on our unix machines running SAS9.1.3 and it works
fine.
|