Structure of the sample terminal error program

The structure of the sample terminal error program (DFHXTEP) can be broken down into six major areas as follows:
  1. Entry and initialization
  2. Terminal identification and error code lookup
  3. Error processor selection
  4. Error processing execution
  5. General exit
  6. Common subroutines.

These areas are described in detail in the sections that follow.

Figure 1 gives an overview of the structure of the sample terminal error program.