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



Debugging primarily I think. Example, a database field. You don't reference
it in the program but you want to see the value in debug. If you use
*NOUNREF if you try to display it with debug it would not be in memory.
Unless I am using some kind of specific thing for debug, I just always use
*NOUNREF.

On Mon, Oct 8, 2012 at 11:22 AM, Matt Olson <Matt.Olson@xxxxxxxx> wrote:

Seems like a silly option to have when *UNREF should be the default. Why
allocate something if it is never referenced?

-----Original Message-----
From: Alan Campin [mailto:alan0307d@xxxxxxxxx]
Sent: Monday, October 08, 2012 12:02 PM
To: Midrange Systems Technical Discussion
Subject: Re: *UNREF

Just tells the compiler to not leave any variable in memory that are not
be used. If I defined a variable named Variable1 but did not use it it
still would have storage allocated to even though it was never referenced.
With *UNREF, no storage is allocated.

On Mon, Oct 8, 2012 at 9:58 AM, <rpglist@xxxxxxxxxxx> wrote:

I what this option is supposed to do, but I'm wondering why it doesn't
remove the variables from the compiler listing as well?



--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take
a moment to review the archives at
http://archive.midrange.com/midrange-l.


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/midrange-l.

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.



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.