CRITICAL
Rule Definition
Not managing errors can lead to data corruption and incorrect behavior, even if the error is managed through specific architecture.
Remediation
Add the ON ERROR clause for the PLI Main Procedures.
Violation Code Sample
MY_PROG: PROC OPTIONS(MAIN) REORDER;
…
END MY_PROG;
Fixed Code Sample
MY_PROG: PROC OPTIONS(MAIN) REORDER;
…
ON ERROR SNAP
BEGIN
…
END
END MY_PROG;
Related Technologies
Technical Criterion
Programming Practices - Error and Exception Handling
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.