Transforming Data with SAS Functions | |
Modifying Character Values with
Functions![]() ![]() |
![]() |
Introduction to Modifying Character Values
This section teaches you how to use SAS functions to manipulate character
variable values. After completing this section, you will be able to
To begin, let's look at some of the modifications that need to be made to
the character variables in Hrd.Temp. These modifications
include
|
SAS Data
Name | LastName | FirstName | MiddleName |
CICHOCK, ELIZABETH MARIE ![]() |
CICHOCK | ELIZABETH | MARIE |
BENINCASA, HANNAH LEE ![]() |
BENINCASA | HANNAH | LEE |
|
SAS Data
Phone | Phone |
6224549 ![]() |
4334549 |
6223251 ![]() |
4333251 |
|
SAS Data
Job |
filing, administrative duties |
bookkeeping, word processing, accounting |
Character Functions
The character functions listed below can help you complete these tasks. You will learn about these functions as you continue this lesson. |
Function | Purpose |
---|---|
SCAN | Returns a specified word from a character value. |
SUBSTR | Extracts a substring or replaces character values. |
TRIM | Trims trailing blanks from character values. |
INDEX | Searches a character value for a specific string. |
UPCASE | Converts all letters in a value to uppercase. |
LOWCASE | Converts all letters in a value to lowercase. |
![]() ![]() ![]() ![]() ![]() ![]() |
|
![]() |
![]() |
Copyright © 2002 SAS Institute Inc.,
Cary, NC, USA. All rights reserved.