Purpose
Returns the string that results from converting all characters to uppercase.
Syntax
►►─── TOUPPER ( string ) ─────────────────────────────────────────────────────►◄
Parameters
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 '
|
Copyright © 2014 CA.
All rights reserved.
|
|