Previous Page | Next Page

Functions and CALL Routines

UPCASE Function



Converts all letters in an argument to uppercase.
Category: Character
Restriction: I18N Level 2

Syntax
Arguments
Details
Examples
See Also

Syntax

UPCASE(argument)


Arguments

argument

specifies a character constant, variable, or expression.


Details

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.


Examples

SAS Statements Results
name=upcase('John B. Smith');
put name;
 
JOHN B. SMITH


See Also

Functions:

LOWCASE Function

PROPCASE Function

Previous Page | Next Page | Top of Page