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 (January 2005, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 5 Jan 2005 09:05:15 -0500
Reply-To:   "Richard A. DeVenezia" <radevenz@IX.NETCOM.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "Richard A. DeVenezia" <radevenz@IX.NETCOM.COM>
Subject:   Re: Exit SAS gracefully / Condtional execution of code without SAS macro

Conditional execution of code without SAS macro

/* Ron Fehd style comment block, remove space before slash to uncomment the block * / ...code to be conditionally executed /**/

So your problem boild down to

%let CommentClose = /**/;

data _null_; ... logic logic logic ... if commentOpenCode then call symput('CommentOpen', '/** /'; else call symput('CommentOpen', '/**/'; run;

&CommentOpen.

... open Code ... conditional upon logic,logic,logic

&CommentClose.

Of course the embedded open code cannot have /* */ style comments.

Richard A. DeVenezia http://www.devenezia.com/


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