rspec/rules/S1293/cobol/rule.adoc
2022-02-04 16:28:24 +00:00

33 lines
630 B
Plaintext

OS/VS COBOL accepted the ``++NOTE++`` statement, but IBM Enterprise COBOL does not. Therefore all ``++NOTE++`` statements should be replaced by standard comment lines.
== Noncompliant Code Example
[source,cobol]
----
IDENTIFICATION DIVISION.
PROGRAM-ID. foo.
PROCEDURE DIVISION.
* Non-Compliant
NOTE This is a comment.
* This is a compliant comment.
END PROGRAM foo.
----
== Compliant Solution
[source,cobol]
----
IDENTIFICATION DIVISION.
PROGRAM-ID. foo.
PROCEDURE DIVISION.
* Compliant
* This is a comment.
END PROGRAM foo.
----