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 2008, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Thu, 28 Aug 2008 08:23:57 -0700
Reply-To:   "Choate, Paul@DDS" <pchoate@DDS.CA.GOV>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "Choate, Paul@DDS" <pchoate@DDS.CA.GOV>
Subject:   Re: < label: > procedure statement.
Comments:   To: "./ ADD NAME=Data _null_," <iebupdte@GMAIL.COM>
In-Reply-To:   A<ce1fb7450808280635t5b3f0eb1uc6d8de57e2ededc6@mail.gmail.com>
Content-Type:   text/plain; charset="us-ascii"

Since statement labels can only be reached from within the same datastep I don't see how it could be referenced by a GO TO statement, a LINK statement, a HEADER= option in a FILE statement, or the EOF= option in an INFILE statement, since those are datastep statements and not procedure statements.

"Restriction: If a statement in a DATA step is labeled, it should be referenced by a statement or option in the same step."

Interesting idea though.

Paul Choate DDS Data Extraction (916) 654-2160 -----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of ./ ADD NAME=Data _null_, Sent: Thursday, August 28, 2008 6:36 AM To: SAS-L@LISTSERV.UGA.EDU Subject: < label: > procedure statement.

Some procedures like REG support label: statements. For REG MODEL, MTEST and TEST statements have documented LABEL support. These labels show up in various places in the output to help identify the statements that generated the specific bits of output.

I haven't tested this extensively but it seems than many other statements can have <label>: .

386 Freq: 386! proc freq data=sashelp.class; 387 Table: tables _all_; 388 run: run;

NOTE: There were 19 observations read from the data set SASHELP.CLASS.

Is there a way to exploit this?


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