Previous Topic: &ZGDATEn

Next Topic: &ZGOPS


&ZGDAY

Returns the day of the week based on GMT.

&ZGDAY provides a system variable for the day of the week, based on GMT, 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: &ZGDAY

&IF &ZGDAY 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 time, is provided in different formats by the system variables &ZGDATE1 to &ZGDATE17.

More information:

&DAY