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 (May 2011, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments: To: bbser 2009 <bbser2009@gmail.com>
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; >


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