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
"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.
DDS Data Extraction
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
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! 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?