SLEEP

CMS Commands

sleep.helpcmd.txt
SLEEP                                                  CP Privilege Class:  Any

Use the SLEEP command to place the virtual machine in a dormant state but allow
messages to be displayed.  You can specify a sleep interval in the command line
and the virtual machine is awakened automatically when the specified interval
has elapsed.  The format of the SLEEP command is:
+----------+------------------------------------------------------------------+
| SLeep    | [nn [MIN|SEC|HRs]]                                               |
+----------+------------------------------------------------------------------+
where:

nn SEC | MIN | HRs
         indicates the number of seconds, minutes, or hours, measured by the
         time-of-day clock, that the virtual machine is to remain dormant.  The
         value nn can be any decimal number from 00 through 99.  If you specify
         no time unit, the value of nn is taken to be in minutes.


Usage notes:

1.  During the dormant period, the virtual machine does not run but connection
    time is still being counted.

2.  The terminal can be awakened at any time by signaling attention.

3.  If no interval is specified, the virtual machine remains dormant until
    awakened by signaling attention.

4.  If you issue the SLEEP command from a CP read or from a VM read using the
    CP "escape" function (#CP SLEEP), the end of the time interval or signaling
    attention returns you to the CP environment.

5.  If you issue the SLEEP command while in virtual machine mode (for example,
    CMS execution of the command line CP SLEEP), the end of the time interval
    or signaling attention returns your terminal to virtual machine mode
    without entering the CP environment.

6.  The SLEEP command, with the time interval, is a convenient way to delay or
    schedule the execution of certain jobs that could be run more efficiently
    at a later time; for example, second shift.

7.  The SLEEP command will be reset if the LOGON or DISCONN command is chained
    to it.