Provides instructions for using the IMS Database Editor to locate a search string in an IMS database, and to add and find
a bookmark.
Locate a search string
To open the IMS Database Find bar and locate a search string:
- From the
Micro Focus Data File Tools menu, click
Search > IMS DB Editor > Find.
- On the
IMS Database Find bar, uncheck
Match case, if it is not already unchecked.
- In the
Find field, type in the word
Table.
- From the
End drop-down list, select
at end of database.
- Click
Find.
The IMS Database Editor searches the database from your current position at the start of the database. In the
Segment Data area in the left pane of the
IMS Database Editor window, you can see that the cursor is positioned at the start of the first occurrence of the string TABLE. If you look in
the right pane, you can see that this is in the segment occurrence for A TABLE OF TEST DEPARTMENTS.
- Click
Find again.
The
Segment Data area displays the second occurrence of TABLE. In the right pane, you can see that this is in the segment occurrence for A
TABLE OF TESTERS.
- Click
Find again.
As there are no more occurrences of the word
Table in the database, a prompt appears indicating that no more occurrences could be found.
- Click
OK.
- To close
Find, click the
Close button () located at the top right of the window.
Whether a search operation fails or succeeds, your current position in the database changes to the last segment searched.
- Click
to move to the start of the database.
Add and find a bookmark
With the IMS Database Editor, you can navigate your way forwards but not backwards through the database. To help you, the
IMS Database Editor provides a bookmarking utility so that you can mark any segment occurrences that you want to revisit.
This saves you from having to issue a number of DL/I calls to position yourself at that segment occurrence again.
- Add a bookmark
- To add a bookmark in the database:
- Click
repeatedly until positioned yourself at the DEMOELES segment occurrence for JOHN SMITH.
- Right-click inside the tree view and click
Add Bookmark on the context menu.
- In the text field on the
Add bookmark dialog box, type
First developer segment; then click
OK.
- Click
to return to the start of the database.
- Find a bookmark
- Now suppose that you want to jump directly back to the segment occurrence for JOHN SMITH. If this was a large database, it
could take some time to go to work your way through from the start. However, because you inserted a bookmark at the first
developer occurrence, you can use the bookmark to move directly there.
- Right-click inside the Tree view and click
Goto Bookmark on the context menu.
- On the
Bookmarks dialog box, click on the
DEMOELES bookmark, and then click
Goto bookmark.
This repositions you back at the segment occurrence for JOHN SMITH.