Date: Fri, 27 Jul 2007 16:40:07 -0700
Reply-To: RolandRB <rolandberry@HOTMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: RolandRB <rolandberry@HOTMAIL.COM>
Organization: http://groups.google.com
Subject: Re: Exit macro
In-Reply-To: <1185557727.974275.18510@m37g2000prh.googlegroups.com>
Content-Type: text/plain; charset="us-ascii"
On 27 Jul, 19:35, abose <hira...@gmail.com> wrote:
> How do I exit a macro prematurely? Is there a statement like
> "return;" (c++,java,c#) or "Exit Sub" (VB) equivalent for SAS macro
> compiler?
What I do in my macros is use "%goto error;" and that puts out a
message saying what macro is ending when it jumps to the "error:"
label. See the end of the following macro.
http://www.datasavantconsulting.com/roland/spectre/macros/closerep.sas
|