CALL SLEEP Routine: z/OS

Suspends the execution of a program that invokes this call routine for a specified period of time.
Category: Special
z/OS specifics: Host call
See: CALL SLEEP Routine in SAS Functions and CALL Routines: Reference



Required Argument

specifies the amount of time, in milliseconds (1/1,000 of a second), that you want to suspend execution of a DATA step and the SAS task that is running that DATA step.


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 tasks, each task can execute CALL SLEEP independently without affecting the other tasks.
  • In batch mode, extended sleep periods can trigger automatic host session termination based on time-out values set at your site. Contact your host system administrator as necessary to determine the time-out values used at your site.
  • If you are running the asynchronous RSUBMIT statement in a SAS/CONNECT session, specifying CALL SLEEP for a DATA step affects only that DATA step. It does not affect any other SAS tasks that you are running on the remote system.