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



Hi Rob,

Good question. I've wondered the same thing although in my case it's
usually - "which subprocedure of a service program am I in".

I've never really figured out if there is an easy way.

I often use a second window for stuff as you describe.

Some other things I do are:

If I want to restrict searches to particular blocks, I right-click the
source then filter view by either subprocedure or subroutine. Then if I
search via the cmd line using :


- /somedata ( search forwards, case insensitve )
- -/somedata ( search backwards case insensitive )
- 'somedata ( search forwards case sensitive )
- -'somedata ( search backwards case sensitive )

The search will be restrained within your filtered block a bit like when
you use XX to exclude source in SEU and use "find somedata nx" to not
search excluded lines.

Sometimes I will set a quick mark where I am using Ctrl+Q , then search for
the BEGSR above by Esc ( to get to cmd line ) then -/begsr. Then I can jump
back where I was using Alt+Q.

But I have often thought that a visual marker in the Outline View or some
such thing for reference without jumping about would be good.

best regards,
Craig

On 14 October 2016 at 15:03, Robert Rogerson <rrogerson@xxxxxxxxxxx> wrote:

Hi all,

I'm using RDi 9.5.1.

When I'm looking at a field in an RPG program sometimes it would be
helpful to know the subroutine I'm in.

For example, if I'm looking for where a field is set I usually do this...

Open the member in a second window. In the first window I scan for all
occurrences of the variable which allows me to see where the variable is
set. But this only shows me the line number so in the second window I
navigate to the line number from the first window to see the surrounding
code. But my issue is that I still don't know what subroutine I'm in
without scrolling up to find the Begsr statement.

I have to maintain a lot of (older) code that regularly contains rather
large subroutines so scrolling up to find the Begsr slows me down.

For me, what would be nice would to be able to see immediately what
subroutine I'm in. Is there a way to do this I'm not aware of? If there
isn't, would anyone else find the display of the subroutine for the current
line be useful? Can anyone share how they tackle this issue currently.

Thanks,

Rob

--
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: http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/wdsci-l.


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.