PURPOSE: This command suspends the current ACCENT R session for the number of seconds specified.
SLEEP (ae) /SECONDS/
(ae) |
is any valid arithmetic expression that evaluates to the number of seconds to suspend the ACCENT R session. |
In this example, the CM is checking for a file to be present. When it is seen it executes a PM to process it otherwise it sleeps for 10 minutes.
START
LEAVE IF @FILE_EXITS 'ORDERS.NOTICES' = 'YES'
SLEEP 600
REPEAT
USE PM PROCESS.ORDER