is a one to eight character label used in conjunction with the GO TO option of the COMPUTE statement.
is executed after processing all the SELECT statements and after the SORT, if there is one.
is executed on all input records before any SELECT, REJECT, or CALL statements are processed, except CALL(I). Any new fields generated at this time can be used as a basis for the SORT and BREAK statements.
is executed on all selected input records by the SELECT(P) or SELECT statement positioned before the COMPUTE(P) statement. Any new fields generated at this time can be used as a basis for the SORT and the BREAK statements.
is executed on selected records by the SELECT statement and after performing the SORT, but before the execution of the SELECT(S) statement.
is executed on control break totals, prior to any other control break processing. Specify n as a number between one and eight, inclusive. n indicates the control break level, where 1 is the lowest level control break in the run. Compute(n) on standard deviation items does not affect the value carried to level n+1.
Example:
COMPUTE(3) instructions are executed only during processing for the third-level control break. They have no effect on first and second level totals. They may alter totals for the third and all higher levels.
is executed on control breaks after all other processing, but before printing. COMPUTE(T) instructions are executed during every control break at all levels, including grand totals.
is executed on the grand totals level, before any other processing. At this point, the entire report is written, except for printing of grand totals.
Note: The count keyword cannot be used to list the total number of jobs.
Example:
DEFINE TOTAL/JOBS(N)(4) =0
COMPUTE IF STEP JOB IND EQ (' 1' OR '11') THEN
TOTAL/JOBS EQ TOTAL/JOBS + 1
| Copyright © 2012 CA. All rights reserved. |
|