Skip to content

Variables should be accessed by adjacent level #303

@asatklichov

Description

@asatklichov

Currently, variables can be accessed by any order, like below, and without any error. See the workspace shared.
Right behavior is expecting error message - 'Unknown identifier 'CITY''

Also, the "repeated declaration" error is reported (see screen shot), but variable is uniquely defined.

CUST_RECORD.CITY = 'Nisa';
INQCUST_COMMAREA.INQCUST_DOB_MM = 'Ani';

 DCL 1 CUST_RECORD,  /*repeated definition*/
         2 CUSTOMER_ADDR,
           3 HOUSE_NUM       CHAR(5),
           3 STREET_NAME     CHAR(15),
           3 CITY            CHAR(15),
         2 FULL_NAME         CHAR(30),
         2 ACCOUNT           PIC '9999999V99',
         2 FIELD             CHAR(15);
Image

Metadata

Metadata

Assignees

Labels

priority-criticalNeeds to be resolved in 1 sprint, ideally in 1-7 daysseverity-criticalA bug that has major impact on the organization preventing the usage of Zowe

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions