LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (October 2002, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 29 Oct 2002 11:35:49 -0800
Reply-To:   "Huang, Ya" <ya.huang@PFIZER.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "Huang, Ya" <ya.huang@PFIZER.COM>
Subject:   Re: Sleep Function for NON WINDOWS OS
Comments:   To: Charles Patridge <Charles_S_Patridge@PRODIGY.NET>
Content-Type:   text/plain

Charles,

Here is a simple macro, you may use it as a sleep function:

73 %macro sleep(sec=); 74 data _null_; 75 t1=time(); 76 do until(t2-t1 >= &sec); 77 t2=time(); 78 end; 79 run; 80 %mend; 81 82 83 %sleep(sec=20);

NOTE: DATA statement used: real time 20.00 seconds cpu time 19.62 seconds

Not sure how accurate it is.

Kind regards,

Ya Huang

-----Original Message----- From: Charles Patridge [mailto:Charles_S_Patridge@PRODIGY.NET] Sent: Tuesday, October 29, 2002 10:56 AM To: SAS-L@LISTSERV.UGA.EDU Subject: Re: Sleep Function for NON WINDOWS OS

Hi Michael,

Apparently WAIT= is not a valid option for the Libname Statement under OpenVMS in both V6.12 and V8.2, so I guess I will have to use Jack's suggestion of

x wait=00:01; /*** wait for 1 minute in OpenVMS ***/

Thanks for the suggestion, Charles Patridge


Back to: Top of message | Previous page | Main SAS-L page