Declaring A User Variable Or User Table - Tandem ENFORM 058057 Reference Manual

Data management library
Table of Contents

Advertisement

Statements
DECLARE Statement
Declaring a User Variable
or User Table
4–10
A user variable or table declaration remains in effect until the end of the current
ENFORM session unless you override the user variable or table by declaring a new
variable or table with the same name.
By default both user variables and elements in user tables are stored as 64-bit signed
integers. To change this default, specify the optional INTERNAL clause described in
Section 5. In the following example, the user variable no-orders is defined. The
INTERNAL clause indicates that no-orders is to be stored as alphanumeric with a
length of 9 bytes:
DECLARE no^orders INTERNAL A9;
The default display format for either a user variable or an element in a user table is a
fourteen character integer. To change this default, specify the optional AS clause. The
display format specified in the AS clause formats the user variable or table element
unless you provide an explicit AS clause in the LIST statement. The AS clause is
described in Section 5.
Specify the HEADING clause to provide a default heading for either a user variable or
a user table. ENFORM uses the default heading for the user variable or table
whenever an explicit HEADING clause is not specified in the LIST statement. The
HEADING clause is described in Section 5. In the following example, the default
display heading "Quarterly Totals" is supplied for the table qtr^totals:
DECLARE qtr^totals [4] HEADING "Quarterly Totals";
Initialize both user variables and user tables by using the SET statement discussed
later in this section.
Section 3 provides more information about user variables and user tables.
058057 Tandem Computers Incorporated

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enform

Table of Contents