Skip to content
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

FR: remove non-standard OCCURS n TO m without DEPENDING item #4

Open
GitMensch opened this issue May 17, 2018 · 0 comments
Open

FR: remove non-standard OCCURS n TO m without DEPENDING item #4

GitMensch opened this issue May 17, 2018 · 0 comments

Comments

@GitMensch
Copy link

As noted in #1 there is an issue in at least https://github.com/ve3wwg/cobcurses/blob/master/src/copybk/COBCURSL.cbl:

../copybk/COBCURSL.cbl:47: error: TO phrase without DEPENDING phrase
../copybk/COBCURSL.cbl:53: error: TO phrase without DEPENDING phrase
../copybk/COBCURSL.cbl:110: error: TO phrase without DEPENDING phrase
       01   NC-FKEY-EXEMPTIONS.
            10  NC-FKEY-DEFN OCCURS 1 TO 12 TIMES.
                20 NC-FKEY-EXEMPT         PIC X.

The COBOL standard says it should either have a DEPENDING item or the 1 TO dropped (which is what IBM COBOL and cobc -std=ibm / cobc -fodo-without-to=ok do - therefore there is no urgent need to change) it.

Summary:
The source is valid on IBM but as it is an extension that has no real use and because other compilers may not support this I suggest to drop it in any places used (and would open a PR after the possible recreation of the repo - #2).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant