Enform Plus Reference Manual

Statements
Enform Plus Reference Manual422684-001
4-40
How Enform Plus Handles Parameters
PARAM reptnum I3;
TITLE "REPORT ", (reptnum);
OPEN parts;
LIST parts;
Notice that reptnum is enclosed in parentheses when specified in the TITLE
statement. To provide a value for reptnum, enter the following TACL PARAM
command:
nn> PARAM reptnum 333
If you then specify the ENFORM command:
nn> ENFORM /IN rept,OUT $s/
the resulting report is:
REPORT 333
Part
Number PARTNAME INVENTORY LOCATION PRICE
------ ------------------ --------- -------- ---------
212 SYSTEM 192KB CORE 7 J87 92000.00
244 SYSTEM 192KB SEMI 3 B78 87000.00
1403 PROC 96KB SEMI 21 A21 22000.00
... ... ... ... ...
You can use a parameter wherever a literal is allowed. In certain cases, Enform Plus
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 Plus
treats a parameter strictly as a numeric literal when you use the parameter as:
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
Enform Plus issues a warning message when you have specified a parameter in this
manner.