The UPPER-CASE function returns a character string that is the same length as the argument specified, with each lowercase letter replaced by the corresponding uppercase letter.
The function type depends on the argument types, as follows:
| Argument Type | Function Type |
|---|---|
| Alphabetic | Alphanumeric |
| Alphanumeric | Alphanumeric |
| DBCS¹ | DBCS¹ |
Note: ¹ IBM Extension
|
|
Argument-1 can be DBCS or national.
The same character string as argument-1 is returned, except that each lowercase letter is replaced by the corresponding uppercase letter. A program collating sequence or code page does not affect the returned value.
If argument-1 is DBCS, the DBCS value is not affected. If argument-1 is a mixed literal, only the single byte portions of the literal are affected.
The character string returned has the same length as argument-1.