Learning More

Character values
This section illustrates the flexibility that SAS provides for manipulating character values. In addition to the functions that are described in this section, the following character functions are also frequently used:
COMPBL
removes multiple blanks from a character string.
COMPRESS
removes specified character(s) from the source.
INDEX
searches the source data for a pattern of characters.
LOWCASE
converts all letters in an argument to lowercase.
RIGHT
right-aligns the source.
SUBSTR
extracts a group of characters.
TRANSLATE
replaces specific characters in a character expression.
UPCASE
returns the source data in uppercase.
The INDEX and UPCASE functions are discussed in Acting ...

Get Step-by-Step Programming with Base SAS 9.4 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.