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



On 8/10/2016 4:58 PM, MichaelQuigley@xxxxxxxxxx wrote:
...
Let's see if I understand what you've pointed out here correctly:
-The debugger will claim the fields don't even exist if you specify
OPTION(*NOUNREF).
-If you specify OPTION(*UNREF) (the default for RPG, but not for COBOL),
the debugger will acknowledge the fields exist. However, the fields won't
have any values loaded unless you also specify one of the DEBUG options
you point out.

Am I anywhere in the ballpark or am I over the left-field fence?


You are smack in the middle of the ballpark, 100% correct.

It's too bad that RPG defaulted to *UNREF. RPG/400 doesn't have an option, it never generates unused fields into the program.

I don't know which debug experience is more unsettling, having the debugger say the field doesn't exist, or not seeing the expected results from an input operation.

I think it would have been better to have an option to do the optimization, but to default to loading the fields whether they are used or not. Yet another thing to address when "they" invent time travel.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.