Previous Topic: Categorizing ErrorsNext Topic: Detecting the Severity of the Error Using $RC


Common Error Subroutines

Most CA Ideal programmers are familiar with the <<ERROR>> procedure as a means of producing information for the end-user when a processing error occurs. A large number of sites have attempted to standardize this processing by using a common subprogram to display and record the error information.

There are two problems that generally arise from the use of a common subprogram:

There is a single solution to both problems: A horizontal calling structure, where a dispatcher program calls all the processing programs according to the value of a control variable. The same dispatcher can invoke the common error subprogram with the following advantages: