Param Statement - Tandem ENFORM 058057 Reference Manual

Data management library
Table of Contents

Advertisement

Statements

PARAM Statement

PARAM Statement
4–40
The PARAM statement allows you to name and define a parameter that can receive a
value from a Command Interpreter PARAM command. The syntax of the PARAM
statement is:
PARAM { param-name [ INTERNAL internal-format ] } , ... [ ;]
param-name
is the name of the parameter being defined. The name must conform to the
naming conventions described in Section 3.
internal-format
is the internal format for storing the parameter. Valid values for internal-format
are:
alphanumeric, where n is the length.
A n
integer, where n is the length.
I n
F w . d fixed, where w is the number of digits and d is the number of decimal
places.
The default is a 64-bit signed integer.
Up to 32 parameters can be defined per ENFORM session. The SET statement can
initialize the value of the parameter. The following PARAM statement defines a
parameter named regno:
PARAM regno INTERNAL I2;
Values for parameters can only be passed to an executing compiled query file. (A
compiled query file is created by the ?COMPILE command described in Section 6.)
Before executing the stored compiled query file, a Command Interpreter PARAM
command can be used to pass a value for the parameter. The value specified by the
Command Interpreter PARAM command supersedes the parameter value specified by
a SET statement. The Command Interpreter PARAM command must precede the
Command Interpreter ENFORM command. Refer to the GUARDIAN Operating System
User's Guide for more information about the Command Interpreter PARAM command.
Parameter values can also be passed through the host language interface. Refer to the
ENFORM User's Guide for information about the host language interface.
058057 Tandem Computers Incorporated

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enform

Table of Contents