LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (July 2007, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments: To: sas-l@uga.edu
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


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