lowerCase()

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

To convert lowercase values to uppercase values, use the strLib.upperCase() system function.

Syntax

  strLib.lowerCase(
    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 STRING value. If text is null, the function returns a null value.

Example

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

  result = strLib.lowerCase(mixedStr);
  // result is "abcde1@ibm.com"

Compatibility

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

Feedback