MIDRANGE dot COM Mailing List Archive



Home » MIDRANGE-L » October 2012

Re: *UNREF



fixed

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.







Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2014 by MIDRANGE dot 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 here. If you have questions about this, please contact