Use this function to determine if maintenance is on in the system.
Syntax
ISMAINTENANCEON()
where:
Syntax example
Set VARIABLE Flag=ISMAINTENANCEON()