Project Management

Space Management for Text Variables

Download Now Free registration required

Executive Summary

Spaces in text strings are vitally important. Without spaces between words, text would be completely unreadable and impossible to align. However, too many spaces between the words would leave the text just as difficult to read. The statements and functions of the SAS system sometimes insert or remove spaces in a surprising way. Fortunately, SAS also provides one with functions such as TRIM and STRIP to remove unwanted spaces. Furthermore with the proper choice of functions and options, excess spaces need not be generated. On the other hand, retaining spaces in variables can be just as much of a problem. For instance, in creating macro variables with the %LET statement, careful consideration must be given to retain spaces before or after the character string.

  • Format: PDF
  • Size: 57.9 KB