PCT Clause
Clauses
5–56
058057 Tandem Computers Incorporated
Combining Percentages
and Subtotals
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;
PCT Clause Used with
User Variable
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.
Restrictions
Note that you cannot combine the PCT clause with the CUM clause.
Summary of Contents for ENFORM 058057
Page 6: ...New and Changed Information 058057 Tandem Computers Incorporated v...
Page 18: ...Preface xvi 058057 Tandem Computers Incorporated This page left intentionally blank...
Page 19: ...Preface 058057 Tandem Computers Incorporated xvii...
Page 269: ...Glossary Glossary 4 058057 Tandem Computers Incorporated This page left intentionally blank...