Is there a way to force fully qualified variables
Posted: Fri Nov 04, 2016 5:57 pm
Hi have a test case where a group appears in a record more than once. They are at different levels but under the same higher level group.
I cannot reference the first EEE because "EEE OF DDD OF BBB OF AAA" is not unique since the compiler can use that qualification as either EEE.
If I have code like "MOVE 'Z' TO EEE OF DDD OF BBB OF AAA." I get error - IGYPS0037-S "EEE OF DDD OF BBB OF AAA" was not a uniquely defined name.
Is there a way (compiler option?) to force the compiler to use fully qualified names only?
01 AAA.
02 BBB.
07 DDD.
12 EEE PIC X(1).
07 CCC.
12 DDD.
17 EEE PIC X(1).
02 BBB.
07 DDD.
12 EEE PIC X(1).
07 CCC.
12 DDD.
17 EEE PIC X(1).
I cannot reference the first EEE because "EEE OF DDD OF BBB OF AAA" is not unique since the compiler can use that qualification as either EEE.
If I have code like "MOVE 'Z' TO EEE OF DDD OF BBB OF AAA." I get error - IGYPS0037-S "EEE OF DDD OF BBB OF AAA" was not a uniquely defined name.
Is there a way (compiler option?) to force the compiler to use fully qualified names only?