Comments

Summary Comments

Some comments summarize what would be reasonably obvious to anyone who took the time to read the COBOL code. Since their purpose is to save time, they should be as brief as possible. A line-by-line paraphrase of simple code would just get in the way.

Explanatory Comments

Other comments explain what would otherwise not be obvious. They may, for example: Explanatory comments may need to be extensive. As in any other form of writing, don't be too verbose. But don't skimp. You may be reading those comments yourself some day.

Guidelines

Comments are generally a Good Thing. We all curse the programmer who writes a 2000-line program with no comments.

Still, even comments can be abused or misused. Here are some guidelines.


homeCOBOL Home [style forum]COBOL Style Forum