upperCase()

The strLib.upperCase() string-formatting function converts all lowercase values in a character string to uppercase values. Numeric and existing uppercase values are not affected.

The strLib.upperCase() function has no effect on double-byte characters in DBCHAR or MBCHAR types.

To convert a character string to lowercase, use the strLib.lowerCase() string-formatting function.

Syntax

  strLib.upperCase(
    text STRING? in)
  returns (result STRING?)
text
Input can be any variable or expression that is assignment compatible with the STRING type (see "Assignment compatibility in EGL").
result
A variable of type STRING. If text is null, the function returns a null value.

Example

  mixedStr STRING = "ABcDe1@IBM.com";
  result STRING;

  result = strLib.upperCase(mixedStr);
  // result is "ABCDE1@IBM.COM"

Compatibility

Table 1. Compatibility considerations for upperCase
Platform Issue
COBOL generation The strLib.upperCase() function has no effect on double-byte characters in strings of type DBCHAR or MBCHAR.

Feedback