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