Previous Topic: TRACE InstructionNext Topic: OPS/REXX Built-in Functions


UPPER Instruction

The UPPER instruction translates the contents of one or more variables to uppercase. The variables are translated in sequence from left to right.

In OPS/REXX, the UPPER instruction uses this syntax:

UPPER variable {variable...} {;}

The variable is a symbol that is separated from any other variables by one or more blanks or comments. Specify only simple symbols and compound symbols.

a1='Hello';  b1='there'
Upper a1 b1
say a1 b1   /* Displays "HELLO THERE" */

If a constant symbol or stem is encountered, an error messaged is issued.

Notes: