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



I agree my method is not as simple as it should be but once you get to the point of searching over the local source the search/replace options become more common when compared to other editors like Notepad++.

You have to open the members in LPEX first. This loads the RemoteSystemsTempFiles cache in your workspace. Once done you can then search over those cached source. You use the File Search tab to do this step. The working space search selection is the better approach to make the File Search not search over more than you really want. (This might require you to also clear RemoteSystemsTempFile before starting).

I might add if you replace in RDi using the File Search tool then RDI will open up the members again and mark the member as changed. Since it knows the server the member came from it also gives you the option to save the changes back to the server. You get all the verification as if you manually made the modifications in LPEX.
Source overflow still occurs but you can make the necessary steps to correct them.

Using John Y.'s approach with Python I would suspect that if the source is free form then you could just inject new lines before and after the modification then that might prevent truncation when saving.


-Matt


-----Original Message-----
From: WDSCI-L [mailto:wdsci-l-bounces@xxxxxxxxxxxx] On Behalf Of Greg Wilburn
Sent: Friday, April 13, 2018 8:24 AM
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

Matt,

I was almost there yesterday... I was out in my "workspace" looking for the members from my member filter. I was going to use Notepad++ to find/replace.

It really shouldn't be this hard. There are several things that a just easier/quicker in PDM still - this included. Try copying source members to another source file... any that have an apostrophe in the description will fail to copy.

Greg

-----Original Message-----
From: WDSCI-L [mailto:wdsci-l-bounces@xxxxxxxxxxxx] On Behalf Of Tyler, Matt
Sent: Thursday, April 12, 2018 6:02 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

Greg, What I do is the following but it takes bit more set up but once you have the steps down its becomes easy the next time you need to replace a lot of source.

0. You will need to check out ALL source to be modified, so you may want to do these steps twice, once to get a list again to replace the source code.
1. search for all members to change by using a rough search match condition, e.g., get as many possible matches just to ensure you cover your bases.
a. It does not matter if you use IBM or iSphere search at this point but with iSphere you better your chances of correct matches if you know regular expressions.
2. Open all or as many as you feel RDi can handle for you at one time. No need to keep them open just down load them. This loads the local source edit cache. Close all opened members.
3. Open search again but this time use the "File Search" tab. Place the same search criteria you used before or make it more specific if you used a broader search. In the Scope section create a "Working Set" by clicking on the Choose button. Then click New. Select the type of resource and select next. Scroll to the "RemoteSystemTempFiles" project and expand. Keep expanding until you find the folder that references your server source library where you have the code checked out for change. We use an IASP so I also have to expand the reference to that. Name your work set then click Finish.
4. Select that work set from the list.
5. Ensure the radio button is set on the "Working Set" item. Then activate the search.

Once it's done you get another list. From this list you can select entries to perform search and replace over (only if you have the members checked out from production source). The search and replace opens the member from the local cache and updates the code. You should be able to just save all and have the source pushed back to the server. Not the best but it's better than the refactor open added to RDi especially when you have dozens and dozens of source members to modify.

** Note
I have yet to follow these steps on version 9.6.0.1 but I see no reason they won't work still.
If you use iSphere search you can save the results as a RSE filter. Then create a User option that performs your CMS check out if it's one that resides on the IBM I (we use Rocket Aldon LM(i)).


-Matt

--
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=JQ8XZHNMPsvk6lcmwAxwwpw-uZ0ctb9Q2MKf3MoAnWk&s=0Dq-4SPAumerdaCmeXmcrUXW8K07v2GpxUa8A8cwDwg&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=JQ8XZHNMPsvk6lcmwAxwwpw-uZ0ctb9Q2MKf3MoAnWk&s=vT4kI0qxJM8YXgwS-Z2Ycpcm6HOkLhFKc5eGprO08pA&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=JQ8XZHNMPsvk6lcmwAxwwpw-uZ0ctb9Q2MKf3MoAnWk&s=0Dq-4SPAumerdaCmeXmcrUXW8K07v2GpxUa8A8cwDwg&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=JQ8XZHNMPsvk6lcmwAxwwpw-uZ0ctb9Q2MKf3MoAnWk&s=vT4kI0qxJM8YXgwS-Z2Ycpcm6HOkLhFKc5eGprO08pA&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.