Assigning Permanent Labels and Formats

Overview

At this point, you've seen raw data read and manipulated to obtain the observations, variables, and variable values that you want. Our final task in this chapter is to permanently assign labels and formats to variables.
If you read Creating List Reports, you learned to temporarily assign labels and formats within a PROC step. These temporary labels and formats are applicable only for the duration of the step. To permanently assign labels and formats, you use LABEL and FORMAT statements in DATA steps.
Remember that labels and formats do not affect how data is stored in the data set, but only how it appears in output.
To do this...
Use this type of statement...
Reference a SAS data ...

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.