Previous Topic: TOMORROWNext Topic: TRAILING-TO-ZONED


TOUPPER

Purpose

Returns the string that results from converting all characters to uppercase.

Syntax

►►─── TOUPPER ( string ) ─────────────────────────────────────────────────────►◄

Parameters

string

Specifies the string value on which the uppercase function is performed.

String can be:

Example

In the following example, the uppercase function is used to convert all characters in the last name to uppercase:

Initial value:
    EMP-LNAME:  'Lanchester         '
Statement:
    MOVE TOUPPER(EMP-LNAME) TO WK-EMP-LNAME.
Returned string:
    'LANCHESTER         '