Functions and CALL Routines |
Converts all letters in an argument to uppercase.
-
argument
-
specifies a character constant, variable,
or expression.
In a DATA step, if the UPCASE function
returns a value to a variable that has not previously been assigned a length,
then that variable is given the length of the argument.
The UPCASE function copies a character argument, converts
all lowercase letters to uppercase letters, and returns the altered value
as a result.
The results of the UPCASE function depend directly on the translation
table that is in effect (see TRANTAB System Option) and indirectly on the
ENCODING System Option and the LOCALE System
Option in
SAS National Language Support (NLS): Reference Guide.
SAS Statements |
Results |
name=upcase('John B. Smith');
put name;
|
JOHN B. SMITH
|
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.