33 lines
630 B
Plaintext
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.
|
|
----
|
|
|