rspec/rules/S122/cobol/rule.adoc

23 lines
330 B
Plaintext
Raw Normal View History

2020-06-30 10:16:44 +02:00
include::../description.adoc[]
== Noncompliant Code Example
----
MOVE '1' TO OCTET-1 MOVE '2' TO OCTET-2
----
== Compliant Solution
----
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
----