Enform Plus Reference Manual
Statements
Enform Plus Reference Manual—422684-001
4-33
How Values Are Displayed in Report Columns
•
An arithmetic expression enclosed in parentheses. The expression can use any
combination of numeric fields, numeric literals, numeric user variables, predefined
aggregates, user aggregates, JULIAN-DATE clauses, or System Variable clauses.
LIST ...,
(price * quantity);
•
An IF/THEN/ELSE expression. Enclose IF/THEN/ELSE expressions in
parentheses.
LIST ...,
(IF inventory GT 0 THEN inventory ELSE ZERO);
•
A user variable. Define the user variable with a DECLARE statement. The variable
should be either initialized with a SET statement or assigned a value with
assignment syntax. If the variable value is neither initialized nor assigned, the
default value is zero. A user variable cannot be assigned the values of a subscript
range.
DECLARE new-var;
SET new-var TO 3;
LIST ... ,
new-var;
•
A System Variable clause.
LIST ... ,
@LINENO AS I5;
•
A user aggregate or predefined aggregate.
LIST ...,
COUNT (branchnum OVER regnum);
•
A field or user table with a subscript range.
LIST ... ,
months [ 1:6 ];
•
A parameter name. Parameters that have not been declared with an alphanumeric
internal format must be enclosed in parentheses. Parameters declared with an
alphanumeric internal format must not be enclosed within parentheses.
PARAM num;
...
LIST ...,
(num);
Enform Plus allows you to specify a group name as a target-item within a LIST
statement; however, Enform Plus might not display the fields within the group in the
manner you expect. To understand the way that Enform Plus displays group elements,