-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redefine Field name with dot(.) notation #74
Comments
Hi, do I understand it right that you are traversing an AST to find if a given field is redefined by another field and, if yes, find that redefined field? As far as I understand a field can redefine another field only if that field is at the same hierarchical level (same level of nesting) and is consecutive to the field being redefined. For instance, this is ok:
But this is incorrect since C does not redefine A:
This means that an ambiguity in redefined field names can only occur if there is more than 1 field with the same name at the same level of nesting. But such fields are prohibited by the compiler and even if this was allowed a fully qualified name won't help resolve the ambiguity. But I'm not sure I understand correctly the issue you are trying to solve. Maybe you can share the piece of code you use for redefined fields searching I can help you with that. |
Hi, 01 COMPANY-DETAILS. in this structure, there are two COMPANY-IDs. So when I am trying to find out Compant-id it is giving me an error like "Multiple fields with name 'COMPANY_ID' found in the copybook. Please specify the exact field using '.' notation.". But as you stated avobe, I can implement some rules to find out correct Copmany-ID. Thanks for your answer. |
If you are using |
Yes, that I was asking as a part of Redefine info of a Statement(Group/Statment) :-) |
Hi,
while searching for REDEFINE fields attached with a given statement(Group/Primitive), found it is provided only the field name. This can be an issue if there are multiple fields with the same name in the copybook. Is it possible to provide exact field name with hierarchy with dot(.) notation ?
The text was updated successfully, but these errors were encountered: