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=.
As an Amazon Associate we earn from qualifying purchases.