UPCASE Function


UPCASE Function

Converts all letters in an argument to uppercase

Category: Character

Syntax

UPCASE ( argument )

Arguments

argument

  • specifies any SAS character expression.

Details

If the UPCASE function returns a value to a variable that has not yet been assigned a length, by default the variable length is determined by the length of the first argument.

The UPCASE function copies a character argument, converts all lowercase letters to uppercase letters, and returns the altered value as a result.

Examples

SAS Statements

Results

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

See Also

Functions:

  • 'LOWCASE Function' on page 641

  • 'PROPCASE Function' on page 737




SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 704

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net