Combining Percentages And Subtotals; Pct Clause Used With User Variable; Restrictions - Tandem ENFORM 058057 Reference Manual

Data management library
Table of Contents

Advertisement

Clauses
PCT Clause
Combining Percentages
and Subtotals
PCT Clause Used with
User Variable

Restrictions

5–56
The SUBTOTAL OVER clause can be combined with the PCT OVER clause, causing
ENFORM to print the percentage the subtotal is of the total value of the target-item.
ENFORM does not print the value of each target-item. The percentage values do not
always exactly total 100% due to truncation during division. If you execute the
following query for example, the total percentage values do not equal 100 %:
OPEN employee
LIST BY regnum, empname, salary PCT, SUBTOTAL OVER regnum;
When a numeric target-item with a PCT clause is assigned to a user variable, ENFORM
makes the assignment to the user variable first, before the percentage is calculated.
When the user variable is referenced as a target-item in a LIST statement or as an
element within a target-item of a LIST statement, ENFORM uses the value of the user
variable. When the user variable is referenced in a print list, ENFORM uses the value
of the percentage for the user variable.
Note that you cannot combine the PCT clause with the CUM clause.
058057 Tandem Computers Incorporated

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enform

Table of Contents