rspec/rules/S1632/rpg/rule.adoc

19 lines
733 B
Plaintext
Raw Normal View History

2021-04-28 16:49:39 +02:00
Historically ``++/COPY++`` procedures contained all of the specifications required for each procedure, so for example ``++xxxxF /COPY++`` would be used to copy the F lines from another ``++F++`` spec. However, this practice results in code that is difficult to understand and maintain. Instead, the use of ``++/COPY++`` statements should be replaced with explicit declarations.
== Noncompliant Code Example
Given the default list of specs, H,F,I,D,C,O:
----
F/COPY HRSILERPG,RSX36
----
== Compliant Solution
----
FSSINRTP IF E K DISK INFSR(*PSSR)
F*
F* Interest Rates File
F*
----