How Enform Treats Parameters - Tandem ENFORM 058057 Reference Manual

Data management library
Table of Contents

Advertisement

ENFORM treats a parameter syntactically as if it were a literal. ENFORM handles
How ENFORM Treats
Parameters
parameters declared with an alphanumeric internal format as string literals. ENFORM
handles all other parameters as numeric literals. When you specify a parameter as a
target-item or as an item in a print-list, you must enclose the parameter in parentheses
just as you would an actual numeric literal. For example, suppose rept, a compiled
query file, contains the following ENFORM statements:
Notice that reptnum is enclosed in parentheses when specified in the TITLE statement.
To provide a value for reptnum, enter the following Command Interpreter PARAM
command:
If you then specify the ENFORM command:
the resulting report is:
You can use a parameter wherever a literal is allowed. In certain cases, ENFORM
allows you to use a parameter but treats the parameter strictly as a numeric literal.
Therefore, you cannot change the value of the parameter at execution time. ENFORM
treats a parameter strictly as a numeric literal when you use the parameter as:
ENFORM issues a warning message when you have specified a parameter in this
manner.
058057 Tandem Computers Incorporated
PARAM reptnum I3;
TITLE "REPORT ", (reptnum);
OPEN parts;
LIST parts;
:PARAM reptnum 333
:ENFORM/IN rept,OUT $s/
REPORT 333
Part
Number
PARTNAME
------
------------------
212
SYSTEM 192KB CORE
244
SYSTEM 192KB SEMI
1403
PROC 96KB SEMI
...
...
a subscript
the "max-subscript" in the declaration of a user table.
the integer in a FORM, SKIP, TAB, or SPACE clause.
the integer in a pattern-match string of a logical expression.
INVENTORY
LOCATION
---------
--------
7
J87
3
B78
21
A21
...
...
Statements
PARAM Statement
PRICE
---------
92000.00
87000.00
22000.00
...
4–41

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enform

Table of Contents