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



Are you using DS I/O?


Jon Paris

www.partner400.com
www.SystemiDeveloper.com

On Jun 17, 2015, at 11:33 AM, Dan <dan27649@xxxxxxxxx> wrote:

With an RPGLE program compiled with OPTION(*UNREF), I would expect that
input fields defined but not used in the program (i.e. *RNF7031: The name
or indicator is not referenced) would still be available to view the values
in debug. FWIW, this is a very simple, 20 line program, no subprocs, and
we are on v7r1.

When I use the EVAL command on the unreferenced fields in debug, it
displays a blank result. For example:
FIELDA = ' '
... even though I know the value in the file is 'ABC123'.

My workaround was to CLEAR each of the unreferenced fields inside of an IF
group that would never test true. Now, debug shows the values correctly.

I thought I remembered there was an option to include these unreferenced
fields so their values could be viewed in debug and/or a dump. (Maybe it
was just the latter?) And the *UNREF option seemed to fit the bill, but
apparently not.

From the RPG reference: "If *UNREF is specified, all variables are
generated into the module." I guess "generated into the module" is subject
to interpretation.

What am I missing?

- Dan
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-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.