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