Searching for a Text in the OS 2200 Perspective

This feature enables you to search for any text that belongs to one or more data files or elements.

The scope of this search includes the following locations:

Notes:

Searching for a text in open editors

Note: You must save the editor in which you want to perform the search operation.

Note: To perform a quick search, you can skip step 1 and step 2. Instead, you can select a text in the editor, and press Ctrl+Alt+F.

Searching for a text in one or more elements, data files, or projects under OS 2200 Explorer

Searching for a text in one or more elements, data files, or program files in OS 2200 File Explorer

    1. Select the required files from the OS 2200 File Explorer result window, and right-click.

    2. On the context-sensitive menu, select OS 2200 Search.

    3. In the Search window, enter the details as described in the Description for Field Entries in the Search Window.

    4. Click Search.

When you initiate a search, the OS 2200 Search in Progress dialog box appears, indicating the progress of the search operation.

Note: It is recommended that you complete or cancel the first search operation before performing another search.

The search results appear in a new OS 2200 Search view, which includes the following information:

You can perform the following functions in the search result:

To do so, select a line from the result, right-click, and click the relevant option on the context-sensitive menu.

Alternatively, you can also expand all search results by clicking , collapse all results by clicking , delete the results by clicking , and save the results by clicking in the OS 2200 Search window.

Note: The Copy All functionality copies all the subitems under a selected line and not all the nodes in the OS 2200 Search window.

For example, when you search for the text 'SECTION' in the files—ADMLPACOB and ADMLPACOB1 from the project PRO1, you get the following result:

‘SECTION’ —8 Lines Matched in open Editor(s)

You can view specific lines along with the line numbers in the file where the match is found by expanding the search result, as follows:

ADMLPACOB [\PRO1\ ADMLPACOB] (3 Lines matched)

Additionally, you can view a few lines above and below the line in which the match is found by setting the Number of lines above/below search parameter, as follows:

ADMLPACOB [\PRO1\ ADMLPACOB] (3 Lines matched)

  4:    CONFIGURATION SECTION

       2:   PROGRAM ID. ADM044

       3:   ENVIRONMENT DIVISION

       4:   CONFIGURATION SECTION

       5:   SOURCE-COMPUTER. UNIVAC – 1108

       6:   OBJECT-COMPUTER. UNIVAC – 1108

  8:    SUBSCHEMA SECTION

 13:    WORKING-STORAGE SECTION

Notes:

                                          Descriptions for Field Entries in the Search Window

 

File Name

 

Field Type

 

 

Description

Containing Text

Text Box

Enter the text that you want to search for. For example, scanf.

The previously searched texts appear as drop-down list in the Containing Text box. From the drop-down list, you can choose to repeat or modify a recent search.

Case Sensitive

Check Box

Select this check box if you want to perform a case-sensitive search.

 

For example, when you select this check box, searching for ABC does not return abc, Abc, AbC, or ABc.

Regular Expression

Check Box

Select this check box if you want to perform a regular expression search by using wildcard characters such as ? and ~, where ~ indicates any set of characters including an empty string and ? indicates a single character.

Note: "\" is the escape character for a literal.

To search for a question mark (?) or tilde (~), put a backslash before the character to indicate that you are not using these characters as wildcards (for example, "\?", "\~")..

Match whole word only

Check Box

Select this check box if you want to match the whole word. For example, searching for ABC does not return ABCD or ABCE.

Expand Result(s)

 

Number of line(s) above and below the result

Drop-down list

Select the Expand Result (s) check box if you want to expand the search results. You can specify the number of lines you want to view above and below the search result in the Number of line(s) above and below the result check box. The available options are 1, 2, and 3. The default number is 2.

The value you specify in the Number of line(s) above and below the result check box is applicable for the quick search also.

Scope:

  • Selected Resources

  • All open editor (s)

Radio Button

Select this option to specify the scope of the search.

Select the Selected Resources option if you want to search for a text in one or more files listed under OS 2200 Explorer or OS 2200 File Explorer.

Select the All open editor (s) option if you want to specify the scope of the search to all currently opened editors.

Note: If the focus is on the editor, the active editor is considered as the selected resource. You can select one of these options only if currently there is at least one open editor, or if at least one file is selected from the OS 2200 File Explorer/OS 2200 Explorer views.