rspec/rules/S1620/rpg/rule.adoc

19 lines
505 B
Plaintext
Raw Normal View History

Use of the LIKE statement for fields with the same specification that are being used together in the same statements makes the relevance of individual fields more understandable, and gives easy reference information, and makes relationships between those fields more obvious.
2021-04-28 16:49:39 +02:00
2021-04-28 16:49:39 +02:00
== Noncompliant Code Example
----
D NAME S 20A
D PNAM S 20A
----
== Compliant Solution
2021-04-28 16:49:39 +02:00
----
D NAME S 20A
D PNAM S LIKE(NAME)
----