Chapter Contents

Previous

Next
CALL SLEEP

CALL SLEEP



Suspends execution of a SAS DATA step for a specified amount of time

CMS specifics: host call


Syntax
Details

Syntax

CALL SLEEP(time);

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


Details

CALL SLEEP puts the DATA step in which it is invoked into a non-active 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.

In this example, the DATA step invokes CALL REPORT every hour:

data _null_;
   while (1);
      call report(a,b,c,d);
      call sleep(3600000);
   end;
run;

Note:   Extended sleep periods can trigger automatic host session termination based on timeout values set at your site. Contact your host system administrator as necessary to determine the timeout values used at your site.  [cautionend]


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.