On 6/9/2014 9:57 AM, Jeff Young wrote:
In SEU, we have the ability to display only source lines that meet a
specified search string.
By excluding all source lines using the *X* function on the source line(s)
and then using the *F(*ind) search string *A(*ll) *X(*Excluded), only those
lines matching the search string will be displayed. I can then use
the *C*(hange)
command to do a group change on either only those lines displayed or only
those lines not displayed.

Is there any way to do this in RDi?

There's no simple substitute. RDi does not execute SEU commands. I
very often used this facility when adding a new level break in an RPG
program. The calculations might do something like

c add amount l1amt
c add qty l1qty
c add 1 l1count

cl1 add l1amt lramt
cl1 add l1qty lrqty
cl1 add l1count lrcount

If we need to add an L2 section, I'd copy the L1 section to a new block,
exclude the lines and issue the SEU command c l1 l2 a x in order to
Change l1 to l2 for all excluded lines. This worked for O specs as well
because one can exclude as many lines as desired - they don't need to be

Doing this in RDi requires several steps. I use Alt-L to select a block
of lines, then either the findText command findText block all
replaceWith l2 l1 or Ctrl-F to bring up the find/replace dialogue. Tick
the 'Restrict search to selection' box to limit the scope of the
replacement to the block you're interested in. As an aside, I prefer
the command to the dialogue because the dialogue assumes that my
selected block is what I want to search for. Er, no.

This requires several steps because one cannot select multiple
non-contiguous blocks (I specs, calcs and O specs). If you use the
command method, it's mark, escape, up arrow, enter. With the dialogue
it's a tad longer as you mark, Ctrl-F, up arrow to recall the find,
Alt-P to position to the 'Replace' box (or tab like 11 times), re-type
the replace text and enter. I'm not a mouser, so I personally tend
toward a keyboard-only workflow.

Hope this was moderately helpful.

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.