Previous Page | Next Page

Functions and CALL Routines under UNIX

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 Language Reference: Dictionary

Syntax
Details

Syntax

CALL SLEEP(n<,unit>);

n

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

unit

specifies the unit of time, as a power of 10, which is applied to n. For example, 1 corresponds to a second, and .001 corresponds to a millisecond. The default is .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 timeout values set at your site. Contact your host system administrator to determine the timeout values used at your site.  [cautionend]

Previous Page | Next Page | Top of Page