Date: Mon, 14 Mar 2011 18:34:19 +0800
Reply-To: Clark An <kuhasu@126.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Clark An <kuhasu@126.COM>
Subject: Re: Chance to Make SAS-L History: Did You Know That...
In-Reply-To: <037AB3FF38D44C4BAFB5DFF3D06B57BAA7E64E03@EX-CMS01.westat.com>
Content-Type: text/plain; charset=GBK
Yes,we know that~
At 2011-03-14 18:30:19£¬"Michael Raithel" <michaelraithel@WESTAT.COM> wrote:
>Dear SAS-L-ers,
>
>Did you know that...
>
>...you can use the WAKEUP function to put a SAS program to sleep and specify when it is to resume executing?
>
>The WAKEUP function directs SAS to put your program to sleep for the duration that you specify within the function. When that duration has passed, your SAS program wakes up and continues to execute, starting with the statements found directly after the statement containing the WAKEUP function.
>
>You can specify a date-time value, a time (in hours), or the number of seconds before/after midnight for SAS to wait until waking up and running the rest of your program. Here is an example of each:
>
>data _null_;
>dozeuntil = wakeup("04JUL2011:12:00:00"dt);
>put "The 4th of July picnic is just starting.";
>run;
>
>data _null_;
>dozeuntil = wakeup("22:30:00"t);
>put "Time for the Letterman show!";
>run;
>
>data _null_;
>dozeuntil = wakeup(120);
>put "It is 2-hours past midnight!";
>run;
>
>
>data _null_;
>dozeuntil = wakeup(-120);
>put "It is 2-hours until midnight!";
>run;
>
>There are more nuances to the WAKEUP function than can be covered in a simple tip, including limits on the durations that you can specify. Check the following link to get more information on the WAKEUP function::
>
>http://support.sas.com/documentation/cdl/en/hostwin/63285/HTML/default/viewer.htm#win-func-wakeup.htm<http://support.sas.com/documentation/cdl/en/hostwin/63285/HTML/default/viewer.htm>
>
>
>Best of luck in all of your SAS endeavors!
>
>
>I hope that this suggestion proves helpful now, and in the future!
>
>Of course, all of these opinions and insights are my own, and do not reflect those of my organization or my associates. All SAS code and/or methodologies specified in this posting are for illustrative purposes only and no warranty is stated or implied as to their accuracy or applicability. People deciding to use information in this posting do so at their own risk.
>
>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>Michael A. Raithel
>"The man who wrote the book on performance"
>E-mail: MichaelRaithel@westat.com
>
>Author: Tuning SAS Applications in the MVS Environment
>
>Author: Tuning SAS Applications in the OS/390 and z/OS Environments, Second Edition
>
>http://www.sas.com/apps/pubscat/bookdetails.jsp?catid=1&pc=58172
>
>Author: The Complete Guide to SAS Indexes
>
>http://www.sas.com/apps/pubscat/bookdetails.jsp?catid=1&pc=60409
>
>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>They're here! - Carol Ann in Poltergeist
>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|