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:
One or more elements, data files, or projects under the OS 2200 Explorer view
One or more elements, data files, or program files in OS 2200 File Explorer
Notes:
The Search window includes tabs such as File Search, OS 2200 Search, Git Search, Java Search, and JavaScript Search. Ensure that you select the OS 2200 Search.
If the search is performed from the OS 2200 Explorer or in the editors that are associated with the project, then the search is performed on the locally cached elements.
Note: You must save the editor in which you want to perform the search operation.
Click
Search > OS 2200 Search.
Note:
Alternatively, you can press Ctrl+Alt+E.
In
the Search window, enter the details as described in the Description for Field Entries
in the Search Window.
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.
Click Search.
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.
Select
the required files from one or more projects from OS
2200 Explorer, and right-click.
Note:
In addition to the files, you can select one or more projects
also.
On the context-sensitive menu, select OS 2200 Search.
In the Search window, enter the details as described in the Description for Field Entries in the Search Window.
Click
Search.
Note:
Selecting a project results in all files in the project being
searched.
Select the required files from the OS 2200 File Explorer result window, and right-click.
On the context-sensitive menu, select OS 2200 Search.
In the Search window, enter the details as described in the Description for Field Entries in the Search Window.
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:
The text you searched for and the total number of matched lines found in the selected files or opened editors.
The number of matched lines found in each file along with the complete path of the file.
You can perform the following functions in the search result:
Expand
Collapse
Delete
Copy
Copy All
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)
ADMLPACOB [\PRO1\ ADMLPACOB] (3 Lines Matched)
ADMLPACOB1 [\PRO1\ ADMLPACOB1] (5 Lines Matched)
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)
4: CONFIGURATION SECTION
8: SUBSCHEMA SECTION
13: WORKING-STORAGE SECTION
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:
You can open a file from the search results listed in the OS 2200 Search view by clicking the first occurrence of the text, which appears highlighted in the file.
If a text occurs more than 500 times in a file, then the search results are arranged in such a way that the first 500 results are grouped together followed by the next 500, and so on. For example, a file contains a text 1200 times. In this case, the first 500 results are grouped together, then the next 500, and then the next 200.
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:
|
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. 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. |