COBOL Manual for TNS and TNS/R Programs

Intrinsic Functions
HP COBOL Manual for TNS and TNS/R Programs522555-006
14-28
LOWER-CASE Function
LOWER-CASE Function
LOWER-CASE, an alphanumeric function, returns a character-string that is the same
as its argument, except that each uppercase letter is replaced by the corresponding
lowercase letter.
string
is an alphabetic or alphanumeric string at least one character in length.
The returned value is the same as the value of string, except that each uppercase
letter is replaced by the corresponding lowercase letter. If the value of string
contains no uppercase letters, or if an ALPHABET clause specifies a collating
sequence that contains no lowercase letters, the returned value is the same as the
value of string.
Example 14-20. LOWER-CASE Function
Code:
DISPLAY FUNCTION LOWER-CASE ("HEWLETT-PACKARD COMPANY 2003")
DISPLAY FUNCTION LOWER-CASE ("Hewlett-packard Company 2003")
DISPLAY FUNCTION LOWER-CASE ("hewlett-packard company 2003")
Output:
hewlett-packard company 2003
hewlett-packard company 2003
hewlett-packard company 2003
( )
LOWER-CASEFUNCTION string
VST438.vsd