SET CASE

Read syntax diagramSkip visual syntax diagram SET CASE UppercaseMixed1RespectIgnore
Notes:
  • 1 If Respect or Ignore is not specified, the default is the previous setting.

Purpose

Use the CASE option to control how letters are entered into the file, how commands are translated from the command line (whether the commands are entered from the terminal or from the console stack), and whether uppercase and lowercase letters are significant in target searches.

Operands

Uppercase
indicates the editor is to translate all lowercase letters to uppercase (whether the lines are entered from the terminal or from the console stack).
Mixed
indicates the editor is not to translate uppercase and lowercase letters (whether the lines are entered from the terminal or console stack).
Respect
In target searches, an uppercase letter does not match a lowercase letter (and a lowercase letter does not match an uppercase letter). For example:
/This Text/
does not locate in the file:
this text
Ignore
In target searches, uppercase and lowercase representations of the same letter match. For example:
locate /THIS TEXT/
locates in the file:
this text

Initial Setting

R is always the initial setting; M or U is based on file type. See File Type Defaults.

Examples

In the following example, the SET CASE subcommand tells the editor to ignore the difference between uppercase and lowercase.

set case mixed ignore

Messages and Return Codes

520E
Invalid operand: operand [RC=5]
545E
Missing operand(s) [RC=5]

where return codes are:

0
Normal
5
Invalid or missing operand(s)
6
Subcommand rejected in the profile due to LOAD error, or QUIT subcommand has been issued in a macro called from the last file in the ring