*UPPER command: Difference between revisions
m (→Usage notes) |
|||
Line 28: | Line 28: | ||
</p> | </p> | ||
<p> | <p> | ||
For | For more details about the PRINT statement, refer to the [[Operations_on_Multiply_Occurring_Fields#PRINT_and_PRINT_n_statements|PRINT statement topic]].</p> | ||
<p class="note"><b>Note:</b> The keywords UPCASE and NOCASE can be used with screen input items. If UPCASE is specified, all input is translated to uppercase. If NOCASE is specified, then input is not translated. If neither UPCASE nor NOCASE is specified, the *UPPER/*LOWER setting determines whether or not screen input is translated. </p> | <p class="note"><b>Note:</b> The keywords UPCASE and NOCASE can be used with screen input items. If UPCASE is specified, all input is translated to uppercase. If NOCASE is specified, then input is not translated. If neither UPCASE nor NOCASE is specified, the *UPPER/*LOWER setting determines whether or not screen input is translated. </p> |
Revision as of 15:41, 16 July 2013
Summary
- Privileges
- Any user
- Function
- Reactivates Model 204's automatic translation of lowercase characters to uppercase characters
Syntax
*UPPER
Usage notes
The *UPPER command reactivates the translation of lowercase characters to uppercase characters. This translation, which is performed automatically by Model 204, causes lowercase input from the terminal to be converted to uppercase before it is processed. This translation can be deactivated with the *LOWER command.
You can enter *UPPER (in uppercase) at a terminal any time that Model 204 is expecting input. Unless *UPPER is preceded by a leading blank or blanks, it is always processed as a command.
For example, the following request invokes the *UPPER command and then displays the string "hello" and the string "HELLO" both in uppercase at the terminal:
BEGIN PRINT '*UPPER' PRINT 'hello' PRINT 'HELLO' END
On the other hand, the following request displays the string "* UPPER" in uppercase at the terminal:
BEGIN PRINT '*UPPER' END
For more details about the PRINT statement, refer to the PRINT statement topic.
Note: The keywords UPCASE and NOCASE can be used with screen input items. If UPCASE is specified, all input is translated to uppercase. If NOCASE is specified, then input is not translated. If neither UPCASE nor NOCASE is specified, the *UPPER/*LOWER setting determines whether or not screen input is translated.