Previous Topic: Work Fields and the DECODE Statement

Next Topic: Automatic Processing Functions


Calculations

The COMPUTE statement enables processing instructions in a CA JARS Wizard run. The processing instructions may perform the following:

COMPUTE statements can also be executed at various points of the processing cycle. A suffix code specifies the time, for example:

COMPUTE(P)

Indicates that the statement should be executed before the SORT is performed. Fields generated at this time can be used as selection fields or as SORT fields.

COMPUTE

Indicates that the statement should be executed after the SORT.

COMPUTE(T)

Indicates that the statement should be executed every time there is a control break.

COMPUTE(n)

Where n is a value from 1 through 8, COMPUTE(n) indicates that the statement should be executed during the control level break and at all higher control level breaks.

For example, COMPUTE(4) means perform the statement at the fourth, fifth, sixth, seventh, and eighth control level break.

COMPUTE(G)

Indicates that the statement should be executed at grand total time.

Note: For further information, see the explanation of the COMPUTE statement in the "Control Statements" chapter.