Date: Mon, 16 May 2011 10:13:49 -0500
Reply-To: Joe Matise <snoopy369@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Joe Matise <snoopy369@GMAIL.COM>
Subject: Re: terminate a data step once condition met
In-Reply-To: <001801cc13db$46d520c0$d47f6240$@com>
Content-Type: text/plain; charset=ISO-8859-1
STOP should work for you.
-Joe
On Mon, May 16, 2011 at 10:09 AM, bbser 2009 <bbser2009@gmail.com> wrote:
> Hi there,
>
> As the code below shows, I would like to jump out of the entire data step
> once finding paid is equal to "N".
> Using abort gave me an error information in the log. Any alternative ideas?
> Thanks a lot.
>
> Max
>
>
> data _null_;
> set sasuser.all end=final;
> if paid="N" then
> do;
> call symput('foott', "unpaid");
> abort;
> end;
> else if final then
> call symput("foott", "paid completely");
> run;
>
|