× 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 often wonder (particularly when I'm searching for occurrences of global variables) where I am in the source. The line number tells me I'm in deep, but... Which subroutine or subprocedure am I looking at LPEX, and how would I know without having to scroll up to find the begsr or P-spec?


In case no one suggests it, I tend to use regular expressions to help with searching.

We have been using the new "DCL-PROC" formatted procedures.
So, when I search for something and want to know what procedure it is in I use a regular expression:

variablename|Dcl-Proc

And I get all procedure names and the lines that contain the variable I was searching for.
You can also include subroutines in your search:

variablename|Dcl-Proc|begsr

In the find screen I use Alt-A to filter to just the lines with the keywords.
Then I use Ctrl-W to unfilter the results.
This allows for quick jumping around in the program source.

Chris Hiebert
Senior Programmer/Analyst
Disclaimer: Any views or opinions presented are solely those of the author and do not necessarily represent those of the company.


-----Original Message-----
From: WDSCI-L [mailto:wdsci-l-bounces@xxxxxxxxxxxx] On Behalf Of Koester, Michael
Sent: Tuesday, May 12, 2015 7:46 AM
To: WDSCI-L@xxxxxxxxxxxx
Subject: [WDSCI-L] Where in the RPG am I? An RFE idea

Perhaps there's a setting, or an open RFE for this, or maybe it's already available in a newer RDi version (currently running 9.1.1)?
Some of my RPG source members are a bit long, and within them, some of the subroutines and subprocedures are also a bit long. I often wonder (particularly when I'm searching for occurrences of global variables) where I am in the source. The line number tells me I'm in deep, but... Which subroutine or subprocedure am I looking at LPEX, and how would I know without having to scroll up to find the begsr or P-spec?
If I'm the first to bring this up, and if I'm not the only one on Planet i for whom a solution would be helpful, I'd be happy to offer an RFE to show the name of the subroutine or inline subprocedure where the cursor is located. Could be displayed at the top of the LPEX pane to the right of the "Line 1187 Column 8 Replace". Perhaps right-adjusted to the far right of the visible window? Or on the very bottom line of the editor, between the last visible source statement and the command line?
Any support for this?

Michael Koester
Programmer/Analyst
DataEast - Granite State Communications

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.