Date: Mon, 9 Jan 2006 11:39:38 -0500
Reply-To: Jim Groeneveld <jim1stat@YAHOO.CO.UK>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Jim Groeneveld <jim1stat@YAHOO.CO.UK>
Subject: Re: semicolon behind macro calls
Content-Type: text/plain; charset=ISO-8859-1
Hi Rune,
A macro generally generates SAS code including all the necessary
semicolons. So, ending a macro with a semicolon may produce an extra one,
which in general is not harmful. But in certain cases it may explicitly be
necessary to omit the semicolon, e.g. if the macro generates partial SAS
code.
Regards - jim.
--
Jim Groeneveld, Netherlands, Statistician and SAS programmer
http://home.hccnet.nl/jim.groeneveld
My computer always teaches me something new I thought I knew already.
[common disclaimer]
On Mon, 9 Jan 2006 16:16:30 +0100, Rune Runnestø <rune@FASTLANE.NO> wrote:
>I have used macro calls for some years, and have never experienced any
>problems even though I have ended the macro calls with a semicolen. I have
>read that it is a good habit not to end a macro call with a semicolon, but
>why is that ?
>
>%macro mymacro;
>%mend;
>
>%mymacro ; <--obs
>
>Rune
|