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 (June 2008, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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)


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