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

43 lines
652 B
Plaintext

include::../description.adoc[]
== Noncompliant Code Example
[source,cobol]
----
MOVE '1' TO OCTET-1 MOVE '2' TO OCTET-2
----
== Compliant Solution
[source,cobol]
----
MOVE '1' TO OCTET-1
MOVE '2' TO OCTET-2
----
== Exceptions
Control flow statements with a single nested statement are ignored.
----
IF x > 0 THEN DISPLAY "positive". *> Compliant
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::../message.adoc[]
include::../highlighting.adoc[]
'''
== Comments And Links
(visible only on this page)
include::../comments-and-links.adoc[]
endif::env-github,rspecator-view[]