ARCHIVED: In SAS, how do I make my variable names more descriptive?

This content has been archived, and is no longer maintained by Indiana University. Information here may no longer be accurate, and links may no longer be available or reliable.

The variable names in SAS can have a maximum length of 32 characters; however, sometimes this may not make the variable names descriptive enough for use at a later date, or for use by others.

You can use the label statement to add descriptive labels to your variables. The following example creates a data set called scores which contains the variables name (student name) and score (score on the final exam):

  DATA scores;
     INPUT name $ score;
     LABEL name = 'student name'
           score = 'score on the final exam';
  RUN;

If you have questions about using statistical and mathematical software at Indiana University, contact the UITS Research Applications and Deep Learning team.

This is document afgf in the Knowledge Base.
Last modified on 2023-05-09 14:45:39.