LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (January 2006, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments: To: rune@FASTLANE.NO
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


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