From the course: SAS® 9.4 Cert Prep: Part 05 Analyzing and Reporting on Data

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Applying temporary labels to columns

Applying temporary labels to columns

- [Instructor] Sometimes column names that follow SAS column naming conventions might be a bit difficult to interpret especially for someone who isn't familiar with the data. Labels are an easy way to enhance a report with more descriptive column headings. You start with the keyword label and then list the column name, an equal sign, and the label string enclosed in quotation marks. A label can be any text string up to 256 characters including spaces and special characters. You can label more than one column in a single label statement. In this example, proc means output. The label is listed as a column in the results. Proc means, proc freq, and most other procedures automatically display the labels in the results. But, proc print is an exception. Because the main purpose of proc print is to examine the data, column names are displayed by default. To display labels instead, you must add the label option in the proc…

Contents