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

Detect clause PIC with usage Comp-1/-2 #1223

Closed
maxime645 opened this issue Jan 8, 2019 · 0 comments
Closed

Detect clause PIC with usage Comp-1/-2 #1223

maxime645 opened this issue Jan 8, 2019 · 0 comments
Assignees
Labels
Cobol Enhancement User Visible Visible by the end user. Useful to priorize issue

Comments

@maxime645
Copy link
Contributor

A variable with a Picture clause cannot be used with usage COMP-1 or COMP-2.
Currently, the error is only detected after compilation. To avoid a useless compilation, it would be nice to fire it while writing the code.

Exemple of code that should fire an error:

01 MyVar PIC 9(5) COMP-1
01 MyVar PIC 9(5) COMP-2
@maxime645 maxime645 added Enhancement Cobol User Visible Visible by the end user. Useful to priorize issue labels Jan 8, 2019
@maxime645 maxime645 self-assigned this Jan 8, 2019
maxime645 pushed a commit that referenced this issue Jan 21, 2019
maxime645 added a commit that referenced this issue Feb 7, 2019
Issue #1223, add error on combinated use of COMP-1/-2 and picture
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cobol Enhancement User Visible Visible by the end user. Useful to priorize issue
Projects
None yet
Development

No branches or pull requests

1 participant