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

VsCode Extention: Bob Cozzi’s RPG IV to RPG Free Conversion

👉 Review: Bob Cozzi’s RPG IV to RPG Free Conversion – a useful VS Code extension for RPG modernization If…

2 months ago

IBM i & SQL Tips #010 – Locating Programs in the Call Stack with STACK_INFO

Hello everyone, I’d like to highlight another excellent contribution by Massimo Duca, part of his ongoing IBM i & SQL…

2 months ago

Trying out “Display File DDS Edit” for VS Code

Intrigued by some recent posts from Cristian Larsen on LinkedIn (New Release – Display File DDS Edit v 0.10.1), I…

2 months ago

Project Bob: the next-gen AI partner for IBM i and IBM Z application development

Hello everyone, Today I’d like to draw your attention to a major new announcement from IBM: Project Bob — a…

2 months ago

IBM i & SQL Tips #6: Calling REST APIs and Parsing JSON Responses with SQL

I want to share with you a particularly useful article by Massimo Duca in the IBM i & SQL Tips…

3 months ago

How Parameter Passing Works in IBM i Programs (RPG / Cobol)

Hello everyone, I’d like to highlight a very useful article by Marco Riva on Markonetools, where he clearly explains how…

3 months ago