From: Dale McLerran on
Well, you could wrap your code in a macro, test for some
condition employing macro code, and branch to the end
of the macro depending on the condition.

Dale

---------------------------------------
Dale McLerran
Fred Hutchinson Cancer Research Center
mailto: dmclerra(a)NO_SPAMfhcrc.org
Ph: (206) 667-2926
Fax: (206) 667-5977
---------------------------------------


--- On Wed, 9/9/09, Anaconda <rune(a)FASTLANE.NO> wrote:

> From: Anaconda <rune(a)FASTLANE.NO>
> Subject: Re: How to write code to cancel all submitted code
> To: SAS-L(a)LISTSERV.UGA.EDU
> Date: Wednesday, September 9, 2009, 5:49 AM
> The ABORT statement, either with the
> return or the abend argument,
> wasn't quite what I had in mind. The ABORT statement ends
> the SAS
> session, while my intention just was to end the submitted
> statements.
>
> - Anaconda
>