*LOWER command: Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Automatically generated page update)
 
(7 intermediate revisions by 2 users not shown)
Line 14: Line 14:
==Usage notes==
==Usage notes==
<p>The *LOWER command deactivates the translation of lowercase to uppercase characters. This translation, which is performed automatically by <var class="product">Model&nbsp;204</var>, causes lowercase input from the terminal to be converted to uppercase before it is processed. If the user enters *LOWER (in uppercase) at a terminal, lowercase characters are preserved.</p>
<p>The *LOWER command deactivates the translation of lowercase to uppercase characters. This translation, which is performed automatically by <var class="product">Model&nbsp;204</var>, causes lowercase input from the terminal to be converted to uppercase before it is processed. If the user enters *LOWER (in uppercase) at a terminal, lowercase characters are preserved.</p>
<p><var class="product">Model&nbsp;204</var> allows *LOWER to be entered anytime <var class="product">Model&nbsp;204</var> is expecting input. Unless *LOWER is preceded by a leading blank or blanks, it is always processed as a command. For example:</p>
<p><var class="product">Model&nbsp;204</var> allows *LOWER to be entered whenever <var class="product">Model&nbsp;204</var> is expecting input. Unless *LOWER is preceded by a leading blank or blanks, it is always processed as a command.</p>
 
<p>For example, this request invokes the *LOWER command, and then prints the strings, 'hello', in lowercase, and 'HELLO', in uppercase, at the terminal:</p>
<p class="code">BEGIN  
<p class="code">BEGIN  
PRINT '*LOWER'
PRINT '*LOWER'
Line 21: Line 23:
END
END
</p>
</p>
<p>This request invokes the *LOWER command, and then prints the strings, 'hello', in lowercase, and 'HELLO', in uppercase, at the terminal. On the other hand:</p>
<p> On the other hand, this request prints the string '*LOWER' in uppercase at the terminal:</p>
<p class="code">BEGIN
<p class="code">BEGIN
PRINT '*LOWER'
PRINT '*LOWER'
END
END
</p>
</p>
<p>This request prints the string '*LOWER' in uppercase at the terminal. Refer to the <var class="book">Model&nbsp;204 User Language Manual</var> for a description of the PRINT statement.</p>
<p>Refer to the [[Processing multiply occurring fields and field groups#PRINT and PRINT n statements|PRINT and PRINT n statements]] topic for a description of the PRINT statement.</p>
<p class="note"><b>Note:</b> Two 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 *LOWER/*UPPER setting determines whether or not screen input is translated.            </p>
 
[[Category: General user commands]]
<p class="note"><b>Note:</b> Two 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 *LOWER/<var>[[*UPPER_command|*UPPER]]</var> setting determines whether or not screen input is translated.            </p>
[[Category: User commands]]
[[Category:Commands]]
[[Category:Commands]]

Latest revision as of 11:16, 23 January 2019

Summary

Privileges
Any user
Function
Deactivates Model 204's automatic translation of lowercase characters to uppercase characters

Format

*LOWER

Example

PRINT '*LOWER'

Usage notes

The *LOWER command deactivates the translation of lowercase 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. If the user enters *LOWER (in uppercase) at a terminal, lowercase characters are preserved.

Model 204 allows *LOWER to be entered whenever Model 204 is expecting input. Unless *LOWER is preceded by a leading blank or blanks, it is always processed as a command.

For example, this request invokes the *LOWER command, and then prints the strings, 'hello', in lowercase, and 'HELLO', in uppercase, at the terminal:

BEGIN PRINT '*LOWER' PRINT 'hello' PRINT 'HELLO' END

On the other hand, this request prints the string '*LOWER' in uppercase at the terminal:

BEGIN PRINT '*LOWER' END

Refer to the PRINT and PRINT n statements topic for a description of the PRINT statement.

Note: Two 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 *LOWER/*UPPER setting determines whether or not screen input is translated.