|
|||
|
Hi,
I run the following code %put _all_; data _null_; day= weekday("16DEC2008"d); put day; run; The log below shows &sysday = Thursday and the put statement is returning 3 which represents the correct day of week Tuesday. The system date is correct and these are the very first statements run when SAS is started. Is there anyway to reset &sysday ?? 1 %put _all_; AUTOMATIC AFDSID 0 AUTOMATIC AFDSNAME AUTOMATIC AFLIB AUTOMATIC AFSTR1 AUTOMATIC AFSTR2 AUTOMATIC FSPBDV AUTOMATIC SYSBUFFR AUTOMATIC SYSCC 0 AUTOMATIC SYSCHARWIDTH 1 AUTOMATIC SYSCMD AUTOMATIC SYSDATE 16DEC08 AUTOMATIC SYSDATE9 16DEC2008 AUTOMATIC SYSDAY Thursday AUTOMATIC SYSDEVIC AUTOMATIC SYSDMG 0 AUTOMATIC SYSDSN _NULL_ AUTOMATIC SYSENV FORE AUTOMATIC SYSERR 0 AUTOMATIC SYSFILRC 0 AUTOMATIC SYSINDEX 0 AUTOMATIC SYSINFO 0 AUTOMATIC SYSJOBID 18040 AUTOMATIC SYSLAST _NULL_ AUTOMATIC SYSLCKRC 0 AUTOMATIC SYSLIBRC 0 AUTOMATIC SYSMACRONAME AUTOMATIC SYSMAXLONG 2147483647 AUTOMATIC SYSMENV S AUTOMATIC SYSMSG AUTOMATIC SYSPARM AUTOMATIC SYSPBUFF AUTOMATIC SYSPROCESSID 41CFF02FD44E56044010000000000000 AUTOMATIC SYSPROCESSNAME DMS Process AUTOMATIC SYSPROCNAME AUTOMATIC SYSRC 0 AUTOMATIC SYSSCP WIN AUTOMATIC SYSSCPL WIN_PRO AUTOMATIC SYSSTARTID AUTOMATIC SYSSTARTNAME AUTOMATIC SYSTIME 13:52 AUTOMATIC SYSVER 8.2 AUTOMATIC SYSVLONG 8.02.02M0P012301 AUTOMATIC SYSVLONG4 8.02.02M0P01232001 2 data _null_; 3 day= weekday("16DEC2008"d); 4 put day; 5 run; 3 NOTE: DATA statement used: real time 0.00 seconds cpu time 0.00 seconds |
|
|
||||
|
||||
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Re: Macro variables within IML loop | David L Cassell | Newsgroup comp.soft-sys.sas | 0 | 09-26-2006 06:18 PM |
| Re: Defining macro variable with another variable? | Jim Groeneveld | Newsgroup comp.soft-sys.sas | 1 | 09-08-2006 02:38 PM |
| Re: Problem with scope of macro variables | Jiann-Shiun Huang | Newsgroup comp.soft-sys.sas | 0 | 03-24-2006 02:54 PM |
| Re: Problem with scope of macro variables | toby dunn | Newsgroup comp.soft-sys.sas | 0 | 03-24-2006 02:04 PM |
| Re: Temporary Variables in macro coding | toby dunn | Newsgroup comp.soft-sys.sas | 0 | 07-14-2005 06:56 PM |