Parameters; User Variables - Tandem ENFORM 058057 Reference Manual

Data management library
Table of Contents

Advertisement

ENFORM Language Elements

User Variables

The value keywords NULL, BLANK, and BLANKS print blanks on reports. The value
keywords ZERO and ZEROS print zeros on reports.
Consider the following IF/THEN/ELSE expression:
IF partnum = 2001 THEN ZEROS
ELSE partnum,
This expression specifies that if partnum is equal to 2001, then zeros are to be printed
on the report. If partnum has any other value except 2001, partnum prints.

Parameters

You can use a parameter either for request qualification or as a target-item. You can
pass a parameter to a stored compiled query file. Define parameters by issuing the
PARAM statement, described in Section 5.
ENFORM handles parameters syntactically as if they were literals. ENFORM handles
any parameter declared with an alphanumeric internal format as a string literal.
ENFORM handles all other parameters as numeric literals. You must enclose a
parameter with parentheses wherever you would have to enclose a numeric literal
with parentheses.
User Variables
A user variable can be used to store numeric or string literals, save a field value, or
hold the result of a calculation for later printing.
Before the user variable is specified in a query, the DECLARE statement (see Section 4
for the syntax of the DECLARE statement) must be entered. This statement defines the
variable name and optionally defines the internal storage format (the default internal
storage format is a 64-bit signed integer), a default display format, and a default
heading. The name given to the user variable must conform to the naming
conventions described in this section.
The default value of a user-declared-variable is zero. An initial value for the user
variable can be defined with the SET statement.
3–29
058057 Tandem Computers Incorporated

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enform

Table of Contents