Date: Mon, 9 Jun 2008 14:07:18 -0400
Reply-To: "Howard Schreier <hs AT dc-sug DOT org>"
<schreier.junk.mail@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Howard Schreier <hs AT dc-sug DOT org>"
<schreier.junk.mail@GMAIL.COM>
Subject: Re: wait between 2 execution of macro programm
On Sun, 8 Jun 2008 10:28:22 -0700, ash007 <RamsamyAshley@GMAIL.COM> wrote:
>Hello,
>
>I have a programm to launch a lot of time (this programm sends a mail
>via SAS).
>
>so the programm is like :
>
>%mailauto(soma@yahoo.com);
>%mailauto(poojafe@yahoo.com);
>%mailauto(aumar0072000@gmail.com);
>%mailauto(beu@gmail.com);
>
>how can I do to tell SAS to wait 20 seconds between 2 executions ?
>
>thanks for your help.
>
>ash_rmy.
Try
%let whocares = %sysfunc( sleep(20) );
You could incorporate this in the macro:
%macro mailauto(beu@gmail.com,sleepseconds=0);
...
%let whocares = %sysfunc( sleep(&sleepseconds) );
...
then call
%mailauto(beu@gmail.com,sleepseconds=20)