Assigning Descriptive Labels
Temporarily Assigning Labels to Variables
-
the LABEL statement to assign a descriptive label to a variable
-
the LABEL option in the PROC PRINT statement to specify that the labels be displayed.
General form, LABEL statement:
LABEL variable1='label1'
variable2='label2'
...
;
Labels can be up to 256
characters long. Enclose the label in quotation marks.
The LABEL statement applies only to the PROC step in which it
appears.
|
Example
Get SAS Certification Prep Guide: Base Programming for SAS 9, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.