× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Also Alt-R and Alt-C, which will make things move when they are copied.

These block select commands are not familiar from SEU - maybe from CODE/400 - and are really powerful.

Vern

On 6/9/2014 11:31 AM, Edmund Reinhardt wrote:
Vern has a good suggestion
If you filter the ' CL1 ' by selected->Filter Selection - so you have
just the lines you want
then use Alt-R, Alt-R1 to rectangular select the '1' column
then hit esc to go to the command line and type 'block fill 2'

Alt-R and block fill are a powerful combo



Regards,

Edmund (E.H.) Reinhardt
Technical Architect for Rational Developer for i
Phone: 1-905-413-3125 | Home: 1-905-854-6195 IBM
E-mail: edmund.reinhardt@xxxxxxxxxx
RDi YouTube: 8200 Warden Ave
www.youtube.com/user/IBMRational#g/c/62DF24D5BCD43501 Markham, ON L6G 1C7
Find me on: LinkedIn: Canada
http://ca.linkedin.com/in/edmundreinhardt/





From: Vernon Hamberg <vhamberg@xxxxxxxxxxxxxxx>
To: Rational Developer for IBM i / Websphere Development Studio
Client for System i & iSeries <wdsci-l@xxxxxxxxxxxx>,
Date: 09/06/2014 12:08 PM
Subject: Re: [WDSCI-L] Filter source code by selected string
Sent by: "WDSCI-L" <wdsci-l-bounces@xxxxxxxxxxxx>



Buck

Review my post to Jeff - it seems to fit his needs.

Your scenario seems different - one way to fill a block (or any
selection) is to use the block-selection Alt-R, then right-click, then
L, then E, then type the fill, then Enter

I want to use keyboard more than mouse in these tools - this sequence
has been a great help.

The other thing I use a lot is selecting with Alt-r, then position
cursor and use Alt-Z to overlay the selection where the cursor is -
these block selection options are very useful. One just can't use them
with data on the clipboard from an external source.

HTH
Vern

On 6/9/2014 10:22 AM, Buck Calabro wrote:
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
contiguous.

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.
--buck

--
This is the Rational Developer for IBM i / Websphere Development Studio
Client for System i & iSeries (WDSCI-L) mailing list
To post a message email: WDSCI-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/wdsci-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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

This mailing list archive is Copyright 1997-2024 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.