IBM Support

Using the COBOL compiler to enforce coding standards: The message exit compiler option explained

White Papers


Abstract

The Enterprise COBOL compiler has many useful features, and one of them is the message exit compiler option (the MSGEXIT suboption of the EXIT compiler option). You can use this feature to enforce local coding standards or even encourage programmers to write better COBOL programs.

Content

  • Review of setting default compiler options and installation-only compiler options
  • Explanation of the EXIT compiler option and the MSGEXIT suboption
  • Discussion of the sample message exit (IGYMSGXT) that comes in compiler dataset SIGYSAMP
  • How to change the severity of compiler diagnostic messages, even suppressing some of them
  • How to use FIPS messages by changing them to diagnostic messages and raising severity, like disallowing ALTERED GOTO

[{"Line of Business":{"code":"LOB17","label":"Mainframe TPS"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SS6SG3","label":"Enterprise COBOL for z\/OS"},"ARM Category":[{"code":"a8m0z00000007yiAAA","label":"COBOL->Options"}],"ARM Case Number":"","Platform":[{"code":"PF035","label":"z\/OS"}],"Version":"All Version(s)"}]

Document Information

Modified date:
25 November 2020

UID

ibm16372558