Rational Developer for i – Rdi – FAQs and Tips (Part 2 – EN)

Introduction

You can find first 10 Rdi Faqs here: “Rational Developer for i – Rdi – Faqs and Tips (Part 1 – EN)”

This post is the continuation of part 1 of the “Rational Developer for i – Rdi – Cheats and FAQs (Part 1 – IT)”

Rdi-Faq011: Searching for sources in RSE Remote System Explorer of Rdi with Isphere

Perhaps not everyone knows the Isphere freeware plugin for Rational Rdi: a collection of really interesting utilities for those who work with Rdi created and made available to the community as freeware by Tools / 400 and Thomas Raddatz (thanks Thomas !!!).

Among the various interesting things about Isphere there is the possibility of doing a search in the sources much more advanced than the “native” search of Rdi:

A) We can search in the sources by putting more conditions in AND or in OR … something that was actually missing from research with Rdi. This search, like the native one of Rdi, can be done on a filter that also includes several SRCPF source files, perhaps in different libraries.

B) The search for the source files can also be done using the Regular Expressions which can help to make more complete searches:.

Let’s take an example with the search for the string “dcl-f employee”:

if we had sources with this instruction written in ways different … for example with spaces between dcl-f and employee … (for example “dcl-f employee”, “dcl-f employee”, “dcl-f employees” etc.),

we could use a regular expression to find all these sources … by entering the regular expression “” dcl-[ ]f + employee “or” dcl-f + employee “

C) The search for Isphere sources also has another interesting possibility: exporting the result of a search can be exported to an Excel file … which could be useful to make a checklist or to share the work in a team of developers in an important refactoring project.

Rdi-Faq012: Still Regular Expression for source search with iSphere

PI’ll take my cue from a Midrange.com post to weigh another example of string search using the regular-expression function of the “Isphere” search: let’s suppose we want to search all the sources that contain strings composed by an I (or an F) (small/capital), followed by a dot and at least one character after the dot… so yes “i.mod” or “f.mod” but no “i”. “:

Here the regular expression for that strings: [iIfF].[a-zA-Z]+

Related Posts
DB2 for i SQL – String Manipulation – POSSTR-LOCATE-LOCATE_IN_STRING (EN)

Introduction Often, in our applications, we need to work with text strings, and DB2 SQL can come in very useful Read more

DB2 for i – FAQ & Howtos (EN)

DB2 Database and SQL ... maybe the most important things on IBM i platform: here's a collection of FAQs, tips Read more

IBM i 7.4 Announcement (En)

Comes directly with the Easter egg this IBM announcement for the news of the IBM i 7.4 version, iNext version Read more

Generated Always Columns (EN)

Introduction "Generated Always Column": are columns, table fields, filled by DB2 engine: something like columns with a default value but Read more

--- Roberto De Pedrini Faq400.com

Recent Posts

Tim Rowe and Scott Forstie for CEC 2024 – Milan

If the packed agenda of sessions at Common Europe Congress 2024, June 3-6 Milan, wasn't enough for you, here's another…

6 mins ago

Code for IBM i 2.10.0 – Debug IBM i App with Visual Studio Code

Debugging functions with Visual Studio Code have been available for some time but this new version 2.10.0 simplifies the handling…

2 days ago

ObjectConnect over TCP/IP

Two and a half years after my post Transferring objects with ObjectConnect and Enterprise Extender, I finally got around to…

3 days ago

SQL: SELECT with “superpowers”

With a little trick even a simple SELECT statement can execute any system command! Let's see how to do that...

5 months ago

NetServer for everyone – part 5

A mini-serial guide to configuring, managing, using, and troubleshooting the IBM i NetServer

1 year ago

NetServer for everyone – part 4

A mini-serial guide to configuring, managing, using, and troubleshooting the IBM i NetServer

1 year ago