You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The latest versions of the IBM Enterprise Cobol compiler provide conditional compilation.
Conditional compilation makes it possible to take into account, or not to take into account, certain lines of source code in the construction (compilation) of the final program, by means of contextual variables which can be set (>>DEFINE) and tested (>>IF, >>EVALUATE ...).
This can allow to have syntactic constructions which can appear "invalid" if one does not take into account the conditional compilation.
We would like to reduce the number of COPYBOOK in Cobol and grouping together in the same COPYBOOK source several descriptions, both DATA and PROCEDURE, which would then be activated according to conditional compilation variables.
This would also allow us to ensure overall consistency by managing an entire context in a single COPYBOOK rather than managing several COPYBOOKs (one for the DATA, one for the PROCEDURE ...).
The Language Server Protocol processing implemented for COBOL does not seem to fully take into account conditional compilation and errors can be returned at the level of the VS Code editor.
See example below : the same COPYBOOK contains DATA and PROCEDURE, but each part is conditioned by conditional compilation variables.
The text was updated successfully, but these errors were encountered:
FALLAI-Denis
changed the title
Improve conditional compilation support
Improve conditional compilation support (conditional / dynamic syntax check)
Nov 2, 2020
FALLAI-Denis
changed the title
Improve conditional compilation support (conditional / dynamic syntax check)
COBOL - Improve conditional compilation support (conditional / dynamic syntax check)
Nov 2, 2020
Description of the enhancement requested
The latest versions of the IBM Enterprise Cobol compiler provide conditional compilation.
Conditional compilation makes it possible to take into account, or not to take into account, certain lines of source code in the construction (compilation) of the final program, by means of contextual variables which can be set (>>DEFINE) and tested (>>IF, >>EVALUATE ...).
This can allow to have syntactic constructions which can appear "invalid" if one does not take into account the conditional compilation.
We would like to reduce the number of COPYBOOK in Cobol and grouping together in the same COPYBOOK source several descriptions, both DATA and PROCEDURE, which would then be activated according to conditional compilation variables.
This would also allow us to ensure overall consistency by managing an entire context in a single COPYBOOK rather than managing several COPYBOOKs (one for the DATA, one for the PROCEDURE ...).
The Language Server Protocol processing implemented for COBOL does not seem to fully take into account conditional compilation and errors can be returned at the level of the VS Code editor.
See example below : the same COPYBOOK contains DATA and PROCEDURE, but each part is conditioned by conditional compilation variables.
The text was updated successfully, but these errors were encountered: