SAS Metadata
Examine Metadata
The most basic way to inspect metadata is with proc contents.
proc contents data=LIBREF.TABLE; run;
Variable Labels
Labels can be permanently applied to a data table through the label statement in a data step.
data LIBREF.TABLE;
label VAR1="Label with up to 256 characters"
VAR2="Multiple labels per statement";
run;Note that proc print shows column names, not labels. To override this behavior, use the label option therein.
Value Labels
See PROC FORMAT.