Closed GitMensch closed 1 year ago
@GitMensch thank you for the issue
So far it isn't supported by a compiler we support. it is listed as a 'potential reserved word' in the latest guide. https://publibfp.dhe.ibm.com/epubs/pdf/igy6lr40.pdf
For now, we are postponing it. Does not make any sense to tolerate this syntax because we will face an error if we try to use a user-defined type variable. This syntax should be fully supported or not supported at all.
Hi @GitMensch,
as TYPEDEF is not a keyword supported by the IBM compiler, we don't plan to support it.
It is a working keyword in IBM COBOL for x86 (now also working with 64bit) already; it is likely to be added to one of the next Enterprise COBOL for z/OS - but most important - it is something that should be available with the new dialect option, no?
I agree we may add it back to the backlog once this is really added to Enterprise COBOL for z/OS. But no - this is not something that the new 'dialect' option would support.
Description
Cannot parse
TYPEDEF
/TYPE
.Steps to reproduce
Create file with the following content
get error messages as follows:
Expected behavior
Support for user-defined types as specified by IBM.
Additional information
This is an ISO2002 feature not available yet on Enterprise COBOL for z/OS; it is likely to be added "relative soon" (like other ISO2002 features that first got distributed with IBM COBOL for x86 and then gets "merged" into the big iron version).