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

19 lines
398 B
Plaintext

Using a data value clause in the ``++LINKAGE SECTION++`` can lead to unexpected behavior at runtime.
== Noncompliant Code Example
[source,cobol]
----
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)
----