On 3/27/2015 12:55 AM, x y wrote:
The Outline feature in RDi 9.1 and V7R1 appears to miss tags (GOTO/TAG) and
literals. When working with old code, it would be nice to have those items
cross-referenced.
I tend to be a boots and suspenders sort and it turns out not to be so
difficult to use regular expression search to find the GOTO/TAG/ENDSR
I'll paste the command line version (press Escape to toggle to the
command line and back) although you can use the Ctrl-F window.
findtext regularExpression "loop *tag"
findtext regularExpression "goto *loop"
That's not really a substitute for seeing them in the outline view, but
if you know what you're looking for...
Another way to see these is to select it, then context click, then
Selected > Filter Selection. The command line version of that is
action filterSelection
Ctrl-F5 to revert to seeing all the code, or click the little + to
expand just the bit you want. Again, not really the same as seeing it
in the Outline View, but it's what I often use to get a long view of the
code with what's available to me right now.
With respect to literals, I never thought to see literals in the Outline
View - they aren't on the listing produced by the compiler, so I'm not
accustomed to looking at them this way. An interesting request,
especially when it comes to refactoring old code: I like to turn these
into constants, which DO appear in the Outline View.
My company firewall is having issues today, so I can't check for myself,
but see if there's an RFE for either TAG or for literals.
https://www.ibm.com/developerworks/rfe/?BRAND_ID=1 I'd definitely vote
for seeing literals in the Outline View.
As an Amazon Associate we earn from qualifying purchases.