The SLEEP function suspends
execution of a DATA step for a specified number of seconds. When the
SLEEP function uses the default
unit value, a pop-up window appears that indicates how long SAS is going
to sleep.
The return value of
the
n argument is the number
of seconds slept. The maximum sleep period for the SLEEP function
is 46 days.
When you submit a program
that calls the SLEEP function, the
SLEEP window
appears telling you when SAS is going to wake up. You can inhibit
the
SLEEP window by starting SAS with the
NOSLEEPWINDOW system option. Your SAS session remains inactive until
the sleep period is over. To cancel the call to the SLEEP function,
use the CTRL+BREAK attention sequence.
You should use a null
DATA step to call the SLEEP function; follow this DATA step with the
rest of the SAS program. Using the
SLEEP
function in this manner enables you to use the CTRL+BREAK attention
sequence to interrupt the SLEEP function and to continue with the
execution of the rest of your SAS program.