The @LOWER statement specifies whether or not EDT is to convert lowercase characters into uppercase when data and statements are input at the terminal.
Operation | Operands | F mode, L mode |
@LOWER | [ {ON | OFF} ] |
ON | EDT differentiates between uppercase and lowercase. Strings are |
OFF | EDT converts entered lowercase characters into uppercase. In F mode, any lowercase characters present in the work file are converted |
When EDT starts, the value ON
is set as the default for all the work files.
The @LOWER statement applies globally to all the work files. The @PAR LOWER statement can be used to set the way in which lowercase characters are handled for each work file separately.
EDT uses the system component XHCS when converting from lowercase to uppercase. Which characters are converted therefore depends on the definition of the associated character set attributes in XHCS.
If the @LOWER statement is issued in L mode inside an input block (see @BLOCK) or in F mode as part of a statement sequence (statements separated by ;) then the conversion mode takes effect as of the statement or data line that follows @LOWER.
If @LOWER OFF is set then all the characters entered at the terminal are converted from lowercase to uppercase irrespective of whether the input was made in F mode or L mode or whether the input consists of statements or data lines. However, in F mode, this conversion is not performed until a statement is stored in the statement buffer, i.e. statements are stored here in the same way that they were entered (see also @SHIH statement).
If input is read from files or work files, e.g. during the execution of EDT procedures or when reading from SYSDTA
after this has been assigned to a file, then text input and literals in statements are not converted into uppercase even if @LOWER OFF is set. This is the same behavior as when reading from files in which case there is also no conversion.
When statements are input, the setting @LOWER ON only affects literals. Statements and keywords are always converted into uppercase when a statement is analyzed.