![]() Chapter Contents |
![]() Previous |
![]() Next |
| SYSDAY |
| Type: | Automatic macro variable (read only) |
| Details | |
| Example | |
| Identifying the Day When a SAS Session Started | |
| Details |
You can use SYSDAY to check the current day before executing code that you want to run on certain days of the week, provided you initialized your SAS session today.
| Example |
The following statement identifies the day and date when a SAS session started running.
%put This SAS session started running on: &sysday, &sysdate.;
Executing this statement on Thursday, December 18, 1997 for a SAS session that began executing on Tuesday, December 16, 1997, writes this to the SAS log:
This SAS session started running on: Tuesday, 16DEC97
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.