Previous Topic: &DATEn

Next Topic: &FILEID


&DAY

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:

MON

Monday

TUE

Tuesday

WED

Wednesday

THU

Thursday

FRI

Friday

SAT

Saturday

SUN

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.