Provides the current day of the week.
&DAY provides a system variable for the current day of the week in the form DDD, where DDD is set to one of the following values:
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
Sunday
Example: &DAY
&IF &DAY EQ SUN &THEN -EXEC SUNDAY&ELSE +
-EXEC EVERYDAY
Notes:
The current date, based on the operating system time, is provided in different formats by the system variables &DATE1 to &DATE17.
The current date, based on GMT, is provided in different formats by the system variables &ZGDATE1 to &ZGDATE17.
| Copyright © 2009 CA. All rights reserved. |
|