's funny - I've been using RDz for almost a year. And it seems like every time I open the product I learn something new - and find something cool/pretty cool/very cool I hadn't seen. Search - for example.
Searching Withn a File
Within a file Ctrl/F
brings up the Find/Replace dialog (I know - you already knew that - hang in there).
Find/Replace allows you to do 99% of what's available in ISPF =2.
- Repeat Search - if ISPF is your editor profile, you can press F5
- Repeat Replace - ditto with F5/F6, just like ISPF
- Find All - which automatically does excludes lines not part of the found results
- Which is similar to ISPF but better, because the excluded lines can be expanded/collapsed with your mouse
- And also when the lines are excluded you are searching within the non-excluded lines - basically a logical "AND" search
- Search within column boundaries
- Do case sensitive and whole-word searches (just like ISPF)
- Use Regular Expressions --- What are they? Regular Expressions allow you to do powerful text searches that are either impossible do with ISPF, or very, very difficult
- For example - you can find all numeric types (of any persuasion) in a COBOL program by using this Regular Expression: PIC .9|PIC 9\(
- Return the previous search by pressing the up-arrow key on your PC
- If you're using the ISPF profile editor you can do F (Find) and C (Change) commands on the command line with 99% of the ISPF edit functionality.
- You can select found text (or not) through your Workspace preferences - etc.
So - all of the above Search functionality does give you a lot of flexibility to do sophisticated and complex searches - but what if you wanted to save (persist) your search results? Save them into a hyper-linked view? Do-able. Actually? Easily Do-able.
- From within your code select the text you want to search on (I dunno ... anything a variable, keyword, paragraph name - partial or whole)
- Now from the Search menu select:
This will create a Search Results view (most likely in the bottom set of Views). From this Results View you can:
- Double-click a result line, to go directly to the reference within the file (this alone is worth the price of admission - as it replaces a significant (and significantly onerous) amount of repetitive typing
- Use the Yellow Arrow Icons on the Search Results toolbar - to locate each found entry one after the next
- Or click the small rectangles in the right-source border - to go to a particular entry
- You can select one or more found entries, Right click and:
- Replace selected - which brings up a cool little wizard for accurate work with Replace (a sometimes dangerous editor feature, no?)
- Copy and paste off to some other text media
- And best of all - you can click on the far right-hand side of the Search Results view an icon to "Pin" the Search Results.
- This makes the results view persist - even when you enter and execute another search operations - more on this in the next Blog entry.
Now then... you knew all that about file searches with RDz? 'til next week....