rspec/rules/S1570/cobol/rule.adoc
2021-04-28 18:08:03 +02:00

18 lines
383 B
Plaintext

Using a data value clause in the ``++LINKAGE SECTION++`` can lead to unexpected behavior at runtime.
== Noncompliant Code Example
----
LINKAGE SECTION.
01 CAR-ID PIC X(20) VALUE IS "VOLVO". *> Noncompliant
01 EMP-TYPE PIC X.
88 FULL-TIME-EMPLOYEE VALUE "F". *> Compliant; this is a condition name
88 PART-TIME-EMPLOYEE VALUE "P".
01 TRAIN-ID PIC X(20)
----