UPPER-CASE Function [ HP COBOL II/XL Reference Manual ] MPE/iX 5.0 Documentation
HP COBOL II/XL Reference Manual
UPPER-CASE Function
The UPPER-CASE function returns a character string that is the same
length as parameter-1 with each lowercase letter replaced by the
corresponding uppercase letter. The function type is alphanumeric.
Syntax
FUNCTION UPPER-CASE (parameter-1)
Parameters
parameter-1 Must be class alphabetic or alphanumeric and must
be at least one character in length.
Return Value
The same character string as parameter-1 is returned, except that each
lowercase letter is replaced by the corresponding uppercase letter.
The character string returned has the same length as parameter-1.
Example
77 CITY PIC X(7) VALUE "chicago".
:
DISPLAY CITY.
MOVE FUNCTION UPPER-CASE (CITY) TO CITY.
DISPLAY CITY.
The above example displays the following:
chicago
CHICAGO
MPE/iX 5.0 Documentation