Previous Topic: DemonstrationNext Topic: Eliminating Unnecessary Records


Coding for Efficiency

Efficient coding prevents excessive use of system resources by minimizing overhead and input/output (I/O) processing wherever possible. Factors influencing coding choices include:

This chapter presents some of the most common coding alternatives that affect the efficiency of a CA Culprit program.

This section contains the following topics:

Eliminating Unnecessary Records

When to Use SELECT and When to Use Type 7 Logic

Avoiding Unnecessary Logic

Combining Tasks for Multiple Reports

Avoiding Unwanted Buffer Dumps

Creating Subtotal Work Fields for Presorted Input Files

JCL Considerations

Miscellaneous Hints