CALL SLEEP Routine: UNIX

For a specified period of time, suspends the execution of a program that invokes this CALL routine.
Category: Special
UNIX specifics: All
See: CALL SLEEP Routine in SAS Functions and CALL Routines: Reference

Syntax

CALL SLEEP(n<,unit> );

Required Argument

n
is a numeric constant that specifies the number of units of time for which you want to suspend execution of a program.

Optional Argument

unit
specifies the unit of time in seconds, which is applied to n. For example, 1 corresponds to 1 second, .001 corresponds to 1 millisecond, and 5 corresponds to 5 seconds.
Default:.001

Details

CALL SLEEP puts the DATA step in which it is invoked into a nonactive wait state, using no CPU time and performing no input or output. If you are running multiple SAS processes, each process can execute CALL SLEEP independently without affecting the other processes.
Note: Extended sleep periods can trigger automatic host session termination based on time-out values set at your site. Contact your host system administrator to determine the time-out values that are used at your site.