From Newsgroup: comp.lang.cobol
On 9/30/2018 2:13 PM, Mayer Goldberg wrote:
When should one qualify names in cobol: Every time, or when there's a conflict?
Do you write
first-name of very-long-name-of-some-structure
or
first-name
?
Up to now, I tried to qualify names all the time, but this hurts readability, and anyway, the compiler will let me know if there's some conflict. What's a good practice?
Thanks,
Mayer
I would recommend only using qualification if required by the compiler
(in other words for data names that appear with the same name in more
than one structure). As another reply indicated, this is often
encountered to support MOVE CORRESPONDING - another one of those COBOL constructs invented only to cause arguments among practitioners... :)
--- Synchronet 3.20a-Linux NewsLink 1.114