Skip to main content

This is documentation for Caché & Ensemble. See the InterSystems IRIS version of this content.

For information on migrating to InterSystems IRIS, see the InterSystems IRIS Migration Guide and Migrating to InterSystems IRIS, both available on the WRC Distributions page (login required).

UPCASE

Converts alphabetic characters to uppercase.

Synopsis

UPCASE(string)

Arguments

string An expression that resolves to a string.

Description

The UPCASE function returns a string of characters with all lowercase letters converted to uppercase. Characters other than lowercase letters are passed through unchanged. If you specify a null string, UPCASE returns a null string.

By default, UPCASE performs case conversion on ANSI Latin-1 letters. To perform case conversion on letters in other character sets, you must set the appropriate locale.

The OCONV function with the “MCU” option is functionally identical to the UPCASE function. To convert uppercase to lowercase, use the DOWNCASE function.

Examples

The following example uses the UPCASE function to convert lowercase letters to uppercase:

MyString = "Caché from InterSystems"
PRINT UPCASE(MyString) 
  ! Returns "CACHÉ FROM INTERSYSTEMS"
Copy code to clipboard

See Also

Feedback