Previous Page | Next Page

The DATASETS Procedure

LABEL Statement


Assigns, changes, and removes variable labels for the SAS data set specified in the MODIFY statement.
Restriction: Must appear in a MODIFY RUN group
Featured in: Modifying SAS Data Sets

LABEL variable-1=<'label-1'|' '>
<...variable-n=<'label-n'|' ' >>;

Required Arguments

variable=<'label'>

specifies a text string of up to 256 characters. If the label text contains single quotation marks, use double quotation marks around the label, or use two single quotation marks in the label text and surround the string with single quotation marks. To remove a label from a data set, assign a label that is equal to a blank that is enclosed in quotation marks.

Range: 1 - 256 characters
Tip: To remove all variable labels in a data set, use the ATTRIB Statement and the _ALL_ keyword.

Previous Page | Next Page | Top of Page