UPPERCASE Function

Purpose

Returns a character string with all the alphabetic characters from a to z converted to their uppercase equivalent.

Syntax

UPPERCASE(x)

Parameters

x is an expression of type character. Conversion occurs if needed.

Examples

    dcl s char (40) varying;
    
    s = 'Lead is an element with the symbol Pb';
    s = uppercase(s);
    put skip list (s);

will print:

LEAD IS AN ELEMENT WITH THE SYMBOL PB

Restrictions

For structure expressions, only flat structures are allowed. Arrays, arrays of structures, and structure member arrays are not yet supported.