Highlighted
Absent Member.
Absent Member.
1324 views

MAXERROR

Jump to solution

We have a Visual COBOL 2.2 program with more than 100 warnings. Visual Studio is reporting 100 warnings then giving the "Too many errors" error (COBH0090). This is related to the MAXERROR compiler directive. The documentation says that the default setting for this compiler directive is NOMAX-ERROR, which would make me think we should never receive this error and should be able to see 101+ errors. This is not the case unless we explicitly set the NO-MAXERROR compiler directive. Is there somewhere we are accidentally setting the MAXERROR directive? Or is it possible the Visual COBOL 2.2 default is not what the documentation says? In case it's important, the only compiler directive we are using is CHECKNUM and it is being set in the program using $SET.

0 Likes
1 Solution

Accepted Solutions
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: MAXERROR

Jump to solution

The warning level and max warnings directives are set in Visual COBOL at the project level as options on the COBOL tab on the project properties page.

If you change the warning level from level W to level E then the warnings will not be shown or you can change the maximum allowed in the textbox provided.

View solution in original post

0 Likes
2 Replies
Highlighted
Absent Member.
Absent Member.

RE: MAXERROR

Jump to solution

IMHO you should eliminate the errors/warnings.

Clean code is the better alternative...

regards

Michael

0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: MAXERROR

Jump to solution

The warning level and max warnings directives are set in Visual COBOL at the project level as options on the COBOL tab on the project properties page.

If you change the warning level from level W to level E then the warnings will not be shown or you can change the maximum allowed in the textbox provided.

View solution in original post

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.