How it works: Patterns

In DFHZCQRT, a series of patterns define the flow through the builder modules. For each kind of terminal, there is a different pattern.

Figure 1 illustrates the calling sequence of builders, as determined by patterns.

If installing, DFHZCQIS selects the pattern and calls DFHTBS (table builder service). If deleting, DFHZCQDL does the selection.

DFHTBS interprets the pattern and calls each builder that the pattern calls out. DFHTBS knows nothing about the terminal or whether you are installing or deleting. It does what the pattern tells it to do.

DFHTBS passes a BPS as it calls each builder. The BPS allows one builder to be used for many different kinds of terminals. For example, DFHBSTC obtains the user area for all terminal types. The BPS contains the length to be obtained.
Figure 1. Calling sequence of builders (determined by patterns)
DFHZCQRT calls DFHZCQIS, which in turn calls DFHTBS. DFHTBS calls builder BSTZ, then BSTZ1, and so on to BSZZV, then BSTZ3.