A results indicator should be used on a CHAIN
statement because it leads to cleaner, more readable, and more correct code. Using an
indicator results in the conditions record not found
, and end of file
being automatically handled correctly, without the
need for further error handling.
Noncompliant Code Example
Compliant Solution
Exceptions