Date: Sun, 2 Jul 2006 15:13:14 -0400
Reply-To: Phil Rack <philrack@MINEQUEST.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Phil Rack <philrack@MINEQUEST.COM>
Subject: Re: run; quits; and other questions
Content-Type: text/plain; charset="us-ascii"
I think you can have a proc or a data step execute without any run
statement as long as it's followed by another PROC or Data Step. For
input v1 v2;
data b; set a;
proc means data=b;
var a b;
Everything above executes.
From: Alan Churchill [mailto:SASL001@SAVIAN.NET]
Sent: Sunday, July 02, 2006 2:56 PM
Subject: run; quits; and other questions
I have a question for the listserv that is obscure but important.
I know I can do this horrible, horrible construct:
data test ;
.and it will run without a run; statement.
However, I can't seem to run a proc without a run statement. A macro
,likewise, isn't recognized unless the prior data step is closed off
My question is what constructs are out there such as the data step
run statement where SAS implicitly adds in a statement? I am only asking
about the major constructs such as procs and data step. So far, from my
testing, it appears that only a data step can take an implied run;
other statements require closure. Is this a valid assumption? Does this
apply to macros requiring a %mend in all cases?
Savian "Bridging SAS and Microsoft Technologies"