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



With other editors you usually have code from a check out repository or a local project loaded into your workspace but with IBM i the source can be contained in multiple "repositories" some that should be locked down from update access but which are not controlled by IBM products.

How do you plan on making it easy to ensure that you don't accidentally refactor production source? For me I get more control access than others and I have *ALLOBJ in order to accomplish some things on our test server. This means that I get full access to production source. RDi is not built around controlling your source just editing it. So if a refactoring RFE was approved I doubt IBM would have any way to prevent you from modifying source incorrectly, if you have the power.


-Matt


-----Original Message-----
From: WDSCI-L [mailto:wdsci-l-bounces@xxxxxxxxxxxx] On Behalf Of Greg Wilburn
Sent: Tuesday, February 27, 2018 12:30 PM
To: Rational Developer for IBM i / Websphere Development Studio Client for System i & iSeries <wdsci-l@xxxxxxxxxxxx>
Subject: Re: [WDSCI-L] Find/Replace in multiple source members

I didn't know about the CTRL-H find. Thanks for that.

I've already done it "the hard way". Seems this should be an RFE... or is this a thing of the past?

-----Original Message-----
From: WDSCI-L [mailto:wdsci-l-bounces@xxxxxxxxxxxx] On Behalf Of Tyler, Matt
Sent: Tuesday, February 27, 2018 2:07 PM
To: Rational Developer for IBM i / Websphere Development Studio Client for System i & iSeries <wdsci-l@xxxxxxxxxxxx>
Subject: Re: [WDSCI-L] Find/Replace in multiple source members

There is but I don't believe the RDi refactor does what you want like refactor does in other source editors. The general jist is that multiple file refactoring needs to be done in a stream file file system.

What I do is

1. Search for all members that match a pattern, using RDi search or iSphere search, it does not matter which at this step
1.a. Check out all matching members if you use a CMS product.
1.b. Search again over my development library source, you should end up with the same list.
2. Open all matching members in RDi in browse or edit it does not matter. This step is to load the RemoteSystemTempFiles (RSTF) cache.
3. Close ALL open members.
4. Use Ctrl+H to open find dialog, choose the File Search tab, select the Working set defined over my (RSTF) work space folder that matches my developer library. (1,2) Search again using the same search pattern.
5. In the search results, perform your search and replace using regular expressions, if needing that control.
6. If replacing strings in your source from the (RSTF) cache they edit tabs will show as "dirty" (with an asterisk). You can save these back to the server with just saving all. If you opened them correctly into the RSTF cache from your developer library they will save back to there.



1. In the scope area (of the File Search tab) there is a Choose button which you can create a working set from which to search over.
2. You can also create a local filter to search over and achieve the same thing, once the working set is create its sometimes simpler to choose that option.

I have not needed to perform these steps in a while so I cannot claim their accuracy in 9.5 or 9.6 RDi.
I would turn of automatic outline activity so it does not bog down RDI when you keep opening source, even for browse.

-Matt


-----Original Message-----
From: WDSCI-L [mailto:wdsci-l-bounces@xxxxxxxxxxxx] On Behalf Of Greg Wilburn
Sent: Tuesday, February 27, 2018 9:49 AM
To: WDSCI-L@xxxxxxxxxxxx
Subject: [WDSCI-L] Find/Replace in multiple source members

Seems like I should know this...

Is there a way to find replace a text string in multiple source members within the same member filter?

I need to change a program call (CLP) in 25 or so members, then recompile. Seems like there should be a way to do that.

Greg
--
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: https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.midrange.com_mailman_listinfo_wdsci-2Dl&d=DwICAg&c=2S-2xx8Cum_thMfWs-kOOHQTwolPvSZ4PFLhr1wDDGs&r=wgq2KO1Tl8HswJht2RKpmz7qvL2YDU_M-VhnRH6r43I&m=vluZez154Y7-inOjW18bZSxRYxdvPRH67U1B4zzx-qQ&s=a1Jd63Vomu5VEyf79EdVZzKP9ungV_H3DhpFzv1Q4RI&e=
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at https://urldefense.proofpoint.com/v2/url?u=https-3A__archive.midrange.com_wdsci-2Dl&d=DwICAg&c=2S-2xx8Cum_thMfWs-kOOHQTwolPvSZ4PFLhr1wDDGs&r=wgq2KO1Tl8HswJht2RKpmz7qvL2YDU_M-VhnRH6r43I&m=vluZez154Y7-inOjW18bZSxRYxdvPRH67U1B4zzx-qQ&s=P5yXz066R1festrjsygbZqGdsZZrG7iP4MJkoHQJ_Ys&e=.
--
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: https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.midrange.com_mailman_listinfo_wdsci-2Dl&d=DwICAg&c=2S-2xx8Cum_thMfWs-kOOHQTwolPvSZ4PFLhr1wDDGs&r=wgq2KO1Tl8HswJht2RKpmz7qvL2YDU_M-VhnRH6r43I&m=8dYLDNEF8I7DqW5Le_iUsKB8IvwpwA99n35RIzYyeWI&s=T4HyOxlQjQwNW_2oehLH2uzkG1AXN7D4Hbiz-bitnnE&e=
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at https://urldefense.proofpoint.com/v2/url?u=https-3A__archive.midrange.com_wdsci-2Dl&d=DwICAg&c=2S-2xx8Cum_thMfWs-kOOHQTwolPvSZ4PFLhr1wDDGs&r=wgq2KO1Tl8HswJht2RKpmz7qvL2YDU_M-VhnRH6r43I&m=8dYLDNEF8I7DqW5Le_iUsKB8IvwpwA99n35RIzYyeWI&s=30VcQGHRedGuaFMHjjnA30QHPcLcKf4W_Z5Svo_r1VY&e=.
--
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: https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.midrange.com_mailman_listinfo_wdsci-2Dl&d=DwICAg&c=2S-2xx8Cum_thMfWs-kOOHQTwolPvSZ4PFLhr1wDDGs&r=wgq2KO1Tl8HswJht2RKpmz7qvL2YDU_M-VhnRH6r43I&m=8dYLDNEF8I7DqW5Le_iUsKB8IvwpwA99n35RIzYyeWI&s=T4HyOxlQjQwNW_2oehLH2uzkG1AXN7D4Hbiz-bitnnE&e=
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at https://urldefense.proofpoint.com/v2/url?u=https-3A__archive.midrange.com_wdsci-2Dl&d=DwICAg&c=2S-2xx8Cum_thMfWs-kOOHQTwolPvSZ4PFLhr1wDDGs&r=wgq2KO1Tl8HswJht2RKpmz7qvL2YDU_M-VhnRH6r43I&m=8dYLDNEF8I7DqW5Le_iUsKB8IvwpwA99n35RIzYyeWI&s=30VcQGHRedGuaFMHjjnA30QHPcLcKf4W_Z5Svo_r1VY&e=.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.