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 (August 2006, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Sun, 13 Aug 2006 19:08:20 -0400
Reply-To:   sbarry@sbbworks.com
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Scott Barry <sbarry@SBBWORKS.COM>
Organization:   SBBWorks, Inc.
Subject:   Re: can SAS be stopped conditionally from executing last part of a code file in open code ?
Content-Type:   text/plain; charset="us-ascii"

Unfortunately, macro language processing is not supported in open SAS (code) environment, so consider using the DATA step CALL EXECUTE function to request SAS compile/execute any subsequent processing, such as a PROC, DATA, or MACRO invocation, based on the outcome of your current DATA step processing results.

Sincerely,

Scott Barry SBBWorks, Inc. ______________________

Hi,

I wonder if execution of a file can be stopped in the middle of a file in open code. Here is an example:

data one; input @01 a $5. @07 b $5. ; datalines; hello Rune hei Mark ; run; proc print; run; %let goon = yes; %let goon = no;

%put &goon;

/* This IF-statement is invalid, but what can I use to avoid SAS running the rest of the file ? */ if &goon eq 'no' then stop;

data two; input @01 a $5. @07 b $5. ; datalines; hei Rune hello Mark ; run; proc print; run;

As the code is now, the value of the macro variable GOON is 'no' when SAS reach the data set two.

Regards, Rune


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