*UPPER command: Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
Line 28: Line 28:
</p>
</p>
<p>
<p>
For more details about PRINT, refer to the [[Operations_on_Multiply_Occurring_Fields#PRINT_and_PRINT_n_statements|PRINT and PRINT n statements]] topic.</p>
For more details about PRINT, refer to the [[Operations on multiply occurring fields#PRINT_and_PRINT_n_statements|PRINT and PRINT n statements]] 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 17:40, 2 January 2014

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 PRINT, refer to the PRINT and PRINT n statements 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.