Rule Definition
If the code to be performed is short, an inline PERFORM can be easier to read. But if the code extends over several screens, the logical flow of the program might be clearer if you use an out-of-line PERFORM. (Each paragraph in structured programming should perform one logical function, however.)
Remediation
Create a dedicated paragraph and put the lines of code in it. Then change the inline PERFORM to an out-of-line PERFORM.
Violation Code Sample
PAR-01.
...
MOVE 0 TO CPT.
PERFORM UNTIL CPT = 10
* Lines of code on several screens
ADD 1 TO CPT
END-PERFORM
...
Fixed Code Sample
PAR-01.
...
MOVE 0 TO CPT.
PERFORM PAR-2 UNTIL CPT = 10.
...
PAR-2.
* Lines of code on several screens
ADD 1 TO CPT.
Reference
IBM Enterprise Cobol for z/OS - Programming Guide
Related Technologies
Cobol
Technical Criterion
CWE-1080 - Source Code File with Excessive Number of Lines of Code
About CAST Appmarq
CAST Appmarq is by far the biggest repository of data about real IT systems. It's built on thousands of analyzed applications, made of 35 different technologies, by over 300 business organizations across major verticals. It provides IT Leaders with factual key analytics to let them know if their applications are on track.