TPUHELP.HLB  —  SLEEP
  SLEEP

     Causes DECTPU to pause for the amount of time specified.  SLEEP is
     useful for suspending screen action while a message is displayed.

  Syntax

     SLEEP ({integer | string})
  Parameters

     integer              The number of seconds for which DECTPU is to
                          pause.

     string               A delta or absolute time indicating how long
                          DECTPU is to pause.  The delta string must be in
                          the format "dddd hh:mm:ss.cc" where dddd is the
                          number of days (0-9999), hh is the number of hours
                          (0-23), mm is the number of minutes (0-59), ss is
                          the number of seconds (0-59), and cc is the number
                          of hundredths of a second (0-99).

                          The absolute string must be in the format
                          "dd-mmm-yyyy hh::mm::ss.cc" where dd is the day of
                          the month (1-31), mmm is the month (for example,
                          JAN), and yyyy is the year (1858-9999).

  Comments

     User input overrides the SLEEP built-in.  If typed-ahead user input is
     pending when DECTPU encounters SLEEP, DECTPU does not pause.  If the
     user types in input during a pause, DECTPU stops the SLEEP.

  Examples

     1.  The following statement causes DECTPU to pause for two seconds.

         SLEEP (2);

     2.  The following statement causes DECTPU to pause for one and one half
         seconds:

     3.  SLEEP ("0 0:0:1.50");
Close Help