bug-gnucobol
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Key Names Not Known in Nested Programs


From: Charlie Anderson
Subject: Re: Key Names Not Known in Nested Programs
Date: Mon, 22 Mar 2021 14:55:36 -0400

Compiler version

"cobc (GnuCOBOL) 3.1.2.0

Copyright (C) 2020 Free Software Foundation, Inc."


>>> Charlie Anderson 3/22/2021 2:44 PM >>>
See attached "NestedKeyBut.CBL".

Example is code which a key name compiles OK in the base program but causes one syntax error in the nested program. Strangely, only the first occurrence of the use of a key name in the nested program is reported as an error " 'People-NameKey' is not defined ".

I have used the key name syntax in earlier COBOL 1985/89 implementations extensively and it is very useful.
 

Charles T. Anderson
President
Distributed Data Services, Inc.
1717 W Fairbanks Ave
Winter Park FL 32789
407-628-2925 voice
800-666-9454 U. S. & Canada
407-628-9510 fax
charlie@distdata.com

Notice of Confidentiality:
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material.  Any review, re-transmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited.  If you received this in error, please contact the sender immediately by return electronic transmission and then immediately delete this transmission, including all attachments, without copying, distributing or disclosing same.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]