LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (January 2005, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Sat, 15 Jan 2005 09:47:27 -0800
Reply-To:     juanwu36@HOTMAIL.COM
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         juanwu36@HOTMAIL.COM
Organization: http://groups.google.com
Subject:      why DOWNAME format gave wrong result???
Content-Type: text/plain; charset="iso-8859-1"

Dear SAS_L,

I run the following code the other day (01/14/2005), somehow the weekday result with DOWNAME format is wrong. Can anybody explain why is this happenning? (I am using SAS9.1 with Windows XP).

Thanks a lot!

Juan

*** the code***; data _null_; date = date(); day = weekday(date); time = time(); put date date. ', ' day DOWNAME. ', ' time time.; put date date. ', ' day ', ' time time.;

today = today(); put today WEEKDATE.; run;

*** log ***; 595 data _null_; 596 date = date(); 597 day = weekday(date); 598 time = time(); 599 put date date. ', ' day DOWNAME. ', ' time time.; 600 put date date. ', ' day ', ' time time.; 601 602 603 today = today(); 604 put today WEEKDATE.; 605 run;

14JAN05, Thursday, 15:51:57 14JAN05, 6, 15:51:57 Friday, January 14, 2005 NOTE: DATA statement used (Total process time): real time 0.00 seconds cpu time 0.00 seconds


Back to: Top of message | Previous page | Main SAS-L page