<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.webhuis.nl:443/index.php?action=history&amp;feed=atom&amp;title=COBOL_Std_3_Comment_Standards</id>
	<title>COBOL Std 3 Comment Standards - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.webhuis.nl:443/index.php?action=history&amp;feed=atom&amp;title=COBOL_Std_3_Comment_Standards"/>
	<link rel="alternate" type="text/html" href="https://wiki.webhuis.nl:443/index.php?title=COBOL_Std_3_Comment_Standards&amp;action=history"/>
	<updated>2026-09-11T05:01:49Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.17</generator>
	<entry>
		<id>https://wiki.webhuis.nl:443/index.php?title=COBOL_Std_3_Comment_Standards&amp;diff=4720&amp;oldid=prev</id>
		<title>Martin: Created page with &quot;== 3. Comment Standards ==  === 3.1 Program Header Block ===  Every program must open with the following header block immediately after IDENTIFICATION DIVISION:  &lt;syntaxhighlight lang=&quot;cobol&quot;&gt;       *================================================================       * PROGRAM  : PROG-NAME       * PURPOSE  : One-line description of business function       * AUTHOR   : Developer name       * DATE     : YYYY-MM-DD       * VERSION  : 1.0       *--------------------------...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.webhuis.nl:443/index.php?title=COBOL_Std_3_Comment_Standards&amp;diff=4720&amp;oldid=prev"/>
		<updated>2026-03-25T11:12:03Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== 3. Comment Standards ==  === 3.1 Program Header Block ===  Every program must open with the following header block immediately after IDENTIFICATION DIVISION:  &amp;lt;syntaxhighlight lang=&amp;quot;cobol&amp;quot;&amp;gt;       *================================================================       * PROGRAM  : PROG-NAME       * PURPOSE  : One-line description of business function       * AUTHOR   : Developer name       * DATE     : YYYY-MM-DD       * VERSION  : 1.0       *--------------------------...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== 3. Comment Standards ==&lt;br /&gt;
&lt;br /&gt;
=== 3.1 Program Header Block ===&lt;br /&gt;
&lt;br /&gt;
Every program must open with the following header block immediately after IDENTIFICATION DIVISION:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;cobol&amp;quot;&amp;gt;&lt;br /&gt;
      *================================================================&lt;br /&gt;
      * PROGRAM  : PROG-NAME&lt;br /&gt;
      * PURPOSE  : One-line description of business function&lt;br /&gt;
      * AUTHOR   : Developer name&lt;br /&gt;
      * DATE     : YYYY-MM-DD&lt;br /&gt;
      * VERSION  : 1.0&lt;br /&gt;
      *----------------------------------------------------------------&lt;br /&gt;
      * INPUTS   : Source data — file names, ACCEPT fields, linkage&lt;br /&gt;
      * OUTPUTS  : Output file, console, database table&lt;br /&gt;
      * CALLED BY: Parent program(s) or job step&lt;br /&gt;
      * CALLS    : Subprograms and copybooks used&lt;br /&gt;
      *----------------------------------------------------------------&lt;br /&gt;
      * CHANGE LOG:&lt;br /&gt;
      * YYYY-MM-DD  Author  Description&lt;br /&gt;
      *================================================================&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== 3.2 Paragraph Header Block ===&lt;br /&gt;
&lt;br /&gt;
Every paragraph must be preceded by a comment block:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;cobol&amp;quot;&amp;gt;&lt;br /&gt;
      *----------------------------------------------------------------&lt;br /&gt;
      * R080-GET-NEXT-PRIME&lt;br /&gt;
      * Purpose : Fetch next prime number from the open DB cursor&lt;br /&gt;
      * Input   : DAL-METHODS = &amp;#039;next-prime&amp;#039;&lt;br /&gt;
      * Output  : DAL-PRIME-NUMBER, DAL-SEQUENCE populated&lt;br /&gt;
      * Returns : DAL-RESULT  0=OK  1=ERROR  2=END-OF-DATA&lt;br /&gt;
      *----------------------------------------------------------------&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== 3.3 Inline Comment Rules ===&lt;br /&gt;
&lt;br /&gt;
* Comment the &amp;#039;&amp;#039;&amp;#039;WHY&amp;#039;&amp;#039;&amp;#039;, not the WHAT — the code shows what; the comment explains the business reason.&lt;br /&gt;
* Comment all 88-level condition names at point of definition and at point of test.&lt;br /&gt;
* Comment all EVALUATE WHEN branches with their business meaning.&lt;br /&gt;
* Comment all SQL statements with the purpose of the query.&lt;br /&gt;
* Commented-out code must carry the date and reason: &amp;lt;code&amp;gt;*YYYY-MM-DD disabled because &amp;amp;lt;reason&amp;amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
* Never leave an empty WHEN OTHER in an EVALUATE — add at minimum a comment explaining why no action is taken.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&amp;#039;&amp;#039;[[Cobol programming standards|← Back to index]]&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Martin</name></author>
	</entry>
</feed>