Arithmetic Overflow Conditions
ENFORM Language Elements
3–32
058057 Tandem Computers Incorporated
A User Variable in
Request-Qualification
A user variable can be specified in a request-qualification. When a user variable is
used for request qualification, ENFORM always uses either the default or initial value
whichever is appropriate. Consider the following:
SET u-var to 10;
LIST ordernum,
u-var:= (or u-var)
WHERE u-var > 10;
The preceding query always returns zero target-records even though in every target-
record the value of u-var (or u-var) is greater than 10. No target-records are
returned because ENFORM uses the initial value of the user variable to evaluate the
WHERE clause. Since u-var is set to 10, no target-records are selected for a WHERE
clause with a logical expression u-var > 10.
User Tables
User tables are special kinds of user variables that can store more than one value.
Currently a user table can have a maximum of 64 elements called occurrences.
ENFORM issues an error message if you attempt to define a table with more than 64
occurrences.
The individual elements of a user table can be referenced by using subscripts. Refer to
the discussion of subscripts in this section for more information.
Like user variables, user tables can be initialized by the SET statement. The default
value of all elements in a user table is zero. When a user table is specified as a target-
item, ENFORM determines its value in the same manner the value of a user variable is
determined. Assignment syntax can be used to assign values to single elements of a
table.
Arithmetic Overflow
Conditions
An arithmetic overflow condition can occur when ENFORM computes a value for:
an arithmetic expression.
a predefined aggregate (such as: SUM or AVG) or a user-defined aggregate.
An arithmetic overflow condition does not cause ENFORM to issue either an error or a
warning message. Instead, ENFORM truncates the result of the computation. If an
arithmetic overflow condition occurs when ENFORM is computing an intermediate
result, ENFORM uses the truncated result to complete the computation.
Содержание ENFORM 058057
Страница 5: ...New and Changed Information iv 058057 Tandem Computers Incorporated This page left intentionally blank...
Страница 6: ...New and Changed Information 058057 Tandem Computers Incorporated v...
Страница 18: ...Preface xvi 058057 Tandem Computers Incorporated This page left intentionally blank...
Страница 19: ...Preface 058057 Tandem Computers Incorporated xvii...
Страница 21: ...Notation Conventions xviii 058057 Tandem Computers Incorporated This page left intentionally blank...
Страница 25: ...ENFORM Terminology Introduction 1 4 058057 Tandem Computers Incorporated This page left intentionally blank...
Страница 121: ...TITLE Statement Statements 4 50 058057 Tandem Computers Incorporated This page left intentionally blank...
Страница 227: ...ENFORM Procedures ENFORM Syntax Summary A 16 058057 Tandem Computers Incorporated This page left intentionally blank...
Страница 269: ...Glossary Glossary 4 058057 Tandem Computers Incorporated This page left intentionally blank...