HP 3000 Manuals

LOWER-CASE Function [ HP COBOL II/XL Reference Manual ] MPE/iX 5.0 Documentation


HP COBOL II/XL Reference Manual

LOWER-CASE Function 

The LOWER-CASE function returns a character string that is the same
length as parameter-1 with each uppercase letter replaced by the
corresponding lowercase letter.  The function type is alphanumeric.

Syntax 

     FUNCTION LOWER-CASE (parameter-1)

Parameters 

parameter-1           Must be class alphabetic or alphanumeric and must
                      be at least one character in length.

Return Value 

The value returned is the same character string as parameter-1, except
that each uppercase letter is replaced by the corresponding lowercase
letter.

The character string returned has the same length as parameter-1.

Example 

     77  CITY      PIC X(7) VALUE "CHICAGO".
           :
     DISPLAY CITY.
     DISPLAY FUNCTION LOWER-CASE (CITY).

The above example displays the following:

     CHICAGO
     chicago



MPE/iX 5.0 Documentation