| Date: | Thu, 17 Sep 2009 09:57:50 -0400 |
| Reply-To: | "Fehd, Ronald J. (CDC/CCHIS/NCPHI)" <rjf2@CDC.GOV> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | "Fehd, Ronald J. (CDC/CCHIS/NCPHI)" <rjf2@CDC.GOV> |
| Subject: | Re: what are the similar statements in macro for LEAVE ,
STOP and CONTINUE statements in Data step? |
| In-Reply-To: | <b094c935-a7bb-41fc-bd83-d51c0c529480@d23g2000vbm.googlegroups.com> |
| Content-Type: | text/plain; charset=us-ascii |
> From: Amar Mundankar
> Subject: what are the similar statements in macro for LEAVE ,
> STOP and CONTINUE statements in Data step?
>
> Hi All,
> I have got 2 questions.
> In data step (e.g in do loop) we use LEAVE and STOP statements.
>
> 1) While writing Macros, what can we use instead of LEAVE ,STOP and
> CONTINUE statements. I didn't see anything like %LEAVE, %STOP or
> %CONTINUE.
> 2) Also what does %ABORT statement do?
>
> Regards,
> Amar Mundankar.
see also: %return, which exits macro execution at that point:
usage:
%If &Condition. %then %return;
Ron Fehd the macro maven CDC Atlanta GA USA RJF2 at cdc dot gov
|