Thanks for the reply Tom. I am of the opinion that the wording of that paragraph is not clear enough. One extra sentence to make clear that the CONTAINING program definitions take precedence over CONTAINED definitions of the same name.
If I can find the time I can submit an RCF to that effect (those round tuits are scarcer than ever these days). Peter -----Original Message----- From: IBM Mainframe Discussion List <[email protected]> On Behalf Of Tom Ross Sent: Tuesday, October 12, 2021 5:32 PM To: [email protected] Subject: COBOL 6.2 - use of identical data name in a nested COMMON subprogram generates a IGYPS0037-S compiler error EXTERNAL EMAIL >The V6.2 Language Reference Manual on page 60 says this about using >identic= al names in nested programs:=20 > >"Identical names >When programs are directly or indirectly contained within other >programs, e= ach program can use identical user-defined words to name >resources. >A program references the resources that program describes rather than >the s= ame-named resources described in another program, even if the >names are different types of user= -defined words." This passage only refers to names that are identical between 2 nested programs. In your case you have a name in the containing program, which is global to all nested programs, being identical to a name in a nested program. Cheers, TomR >> COBOL is the Language of the Future! << ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
