Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved


Chapter 3 Tools : $SLEEP

$SLEEP
Causes the Execution Environment to go dormant. (C)
Invocation
CALL $SLEEP(milliseconds)
 
Exceptions
None.
Example
The following example uses $SLEEP to control the length of time between successive sweeps of a table.

 
MONTABLE(TABLENAME, SECONDS);
- LOCAL INTERVAL; ----------------------------------------------------------------------------------- --------------------------------------------------------------+--------------------
- INTERVAL = SECONDS * 1000;                                  | 1
- UNTIL DONE :                                                | 2
- FORALL TABLENAME :                                         |
-    CALL ROWCHECK(TABLENAME);     |
-    END;     |
- CALL $SLEEP(INTERVAL);    |
- END;     |
- |
- |
- |
- |
- | -----------------------------------------------------------------------------------

 

Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved