The @SEARCH-OPTION statement can be used to define whether a distinction should be made between uppercase/lowercase when searching for strings with the @ON statement. By default, searches are case-sensitive. If no distinction is to be made between uppercase/lowercase then the search term and search area are temporarily converted from lowercase to uppercase when the statement is executed.
The conversion is performed using the interface provided by XHCS. When lowercase/uppercase conversion is performed, the lengths of the strings do not change irrespective of the specified character set.
Example
@SEARCH-OPTION CASELESS- @ON & C'suCH' TO 'SUCH' | The uppercase/lowercase notation of a character is Only the string ' |
@SEARCH-OPTION CASELESS- @ON & C'suCH' TO 'SUCH' | Uppercase/lowercase notation is not taken into All ' |
The CASELESS-SEARCH setting only applies to formats 1 to 3 and 5 to 10.
In format 4 it is not relevant since searches in this format are only conducted for marked lines.