Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

@SEARCH-OPTION - Set default value for searching with @ON

&pagelevel(3)&pagelevel

On the one hand, the @SEARCH-OPTION statement can be used to specify whether the @ON statement is to differentiate between uppercase and lowercase in the search term when searching for strings and, on the other, it can be used to define a global column range to which the search is restricted if the @ON statement contains no explicit column range specification.

Operation

Operands

F mode, L mode

@SEARCH-
OPTION

{CASELESS-SEARCH [={ ON | OFF}] | COLUMN-RANGE [=cols]} [,...]
CASELESS-SEARCH=

The operand specifies whether a distinction is to be made between
uppercase and lowercase characters in the search term when searching
with @ON.

ON

The search with @ON does not consider whether the characters in the
located text match those in the search term in terms of uppercase and
lowercase notation, i.e. if 'string' is defined as the search term then the
strings 'String', 'STRING' or 'StrIng' are all identified as hits (see also
section “Searching with @ON”).

OFF

The uppercase/lowercase notation of a character is taken into consideration
during the search. This is the default setting when EDT is started.

COLUMN-RANGE=

The operand provides a global specification for the column range to which
the search is to be restricted if the @ON statement contains no explicit
column range specification.

cols

Contiguous column range to which searches using the @ON statement are
to be limited. If the range specification contains only a single column
specification, this indicates the range from the specified column through to
32768. If the first operand is greater than the second then the statement is
rejected with the message EDT3922.

If no column range is specified then the setting is reset to the value defined
at EDT start time, i.e. 1-32768.


EDT uses the system component XHCS when assigning lowercase characters to uppercase. Which characters are treated as an uppercase/lowercase pair therefore depends on the definition of the associated character set attributes in XHCS.

The option CASELESS-SEARCH=ON is effective independently of the setting made with @PAR LOWER. Consequently, in F mode with @PAR LOWER=OFF hits may be displayed in which the located characters are depicted as smudge characters.