Previous Topic Next topic Print topic


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. It can be converted to character.

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

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

Previous Topic Next topic Print topic