Date: Sun, 2 Jul 2006 21:10:49 -0700
Reply-To: Sierra Information Services <sfbay0001@AOL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Sierra Information Services <sfbay0001@AOL.COM>
Organization: http://groups.google.com
Subject: Re: run; quits; and other questions
In-Reply-To: <002501c69e1e$e7acd930$b7068b90$@net>
Content-Type: text/plain; charset="iso-8859-1"
My understanding is that the words RUN and QUIT are explicit step
boundaries between data and procedure steps in the SAS Sysetm, while
the words DATA and PROC are implied step boundaries.
Hope this helps.
Andrew Karp
Sierra Infrmation Services
www.SierraInformation.com
Alan Churchill wrote:
> Toby,
>
> That answers my question exactly. I need to identify code segments and how
> to parse them properly and using the step boundaries is that answer.
>
> Thanks,
> Alan
>
> Alan Churchill
> Savian "Bridging SAS and Microsoft Technologies"
> www.savian.net
>
> -----Original Message-----
> From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of toby
> dunn
> Sent: Sunday, July 02, 2006 2:56 PM
> To: SAS-L@LISTSERV.UGA.EDU
> Subject: Re: run; quits; and other questions
>
> Alan ,
>
> As far as I know you cant run a Data Step or Proc without a step boundary.
> I tried running your code in interactive mode and it didnt not produce
> anything. I have had no problem in tha past running Dat aStep or procs
> without a step boundary so long as I am running in batch mode. In these
> cases SAS knows that there cannot be any more code to compile and run and
> will execute the code.
>
>
>
> Toby Dunn
>
>
>
>
>
> From: Alan Churchill <SASL001@SAVIAN.NET>
> Reply-To: Alan Churchill <SASL001@SAVIAN.NET>
> To: SAS-L@LISTSERV.UGA.EDU
> Subject: run; quits; and other questions
> Date: Sun, 2 Jul 2006 12:56:03 -0600
>
> I have a question for the listserv that is obscure but important.
>
>
>
> I know I can do this horrible, horrible construct:
>
>
>
> data test ;
>
> set sashelp.class;
>
>
>
> .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 with a
> run statement.
>
>
>
> My question is what constructs are out there such as the data step without a
> 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; whereas
> other statements require closure. Is this a valid assumption? Does this also
> apply to macros requiring a %mend in all cases?
>
>
>
> Alan
>
>
>
> Alan Churchill
>
> Savian "Bridging SAS and Microsoft Technologies"
>
> www.savian.net
|