MIDRANGE dot COM Mailing List Archive



Home » MIDRANGE-L » October 2012

Re: *UNREF



fixed

On 2012/10/9 2:37 PM, Rpglist wrote:
Ok so Barbara what's the actual difference between the two?


If you mean between *UNREF and *NOUNREF, then say you define a field on a D, I or C spec, and it gets RNF7031 (Name not referenced).

- With OPTION(*UNREF), it gets generated into the module.
- With OPTION(*NOUNREF), it doesn't get generated into the module.

Some exceptions for *NOUNREF:
- a data structure gets generated into the module if it or any of its subfields are referenced
- fields on input specs get generated into the module if the H spec
DEBUG keyword indicates that input-specs are being debugged

If you mean between RPG/400 and ILE RPG, then RPG/400 has the OPTION(*NOUNREF) behaviour, and ILE RPG gives you the option to have either *UNREF or *NOUNREF.





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