|
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
|