01 - Programming (EN)01d - Rational RDi and other tools (EN)

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

Last Updated on 6 June 2020 by Roberto De Pedrini

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
About author

Founder of Faq400 Srl, IBM Champion, creator of Faq400.com and blog.faq400.com web sites. RPG developer since I was wearing shorts, strong IBM i supporter, I have always tried to share my knowledge with others through forums, events and courses. Now, with my company Faq400 Srl, I help companies to make the most of this great platform IBM i.

Leave a Reply

Your email address will not be published. Required fields are marked *