Define - Monarch 9460 Programmer's Manual

Adk printer
Hide thumbs Also See for 9460:
Table of Contents

Advertisement

D E F I N E
Purpose
Defines the field definitions for the buffers.
Syntax
To define a SCRATCH buffer...
DEFINE field-type , field-length , data-type
To define TEMPORARY or PRINTER buffers...
DEFINE field-type , field-name , field-length [ , data-type ]
To define an ARRAY buffer...
DEFINE field-type , field-name , field-length , number-of-elements [ , data-type ]
To define a LOOKUP buffer...
DEFINE field-type , [ logical-name ] field-name , field-length [ , data-type ]
Process
The DEFINE command defines temporary, lookup, printer, array, and scratch buffer
fields.
Field-type
Field-name
other identifier.
Field-length
you're defining a scratch buffer, the maximum is 65535.
NOTE:
Although individual lookup table fields can be up to 2800 bytes long, lookup table
records cannot exceed 128K.
If a DEFINE TEMPORARY statement is placed inside the BEGIN-END pair of a
function, that variable can only be referenced within that function and not by any
other function.
Logical-name
Optional Fields
(over all lookup tables used by the script) and in parentheses. The default name is
lookup.
Number-of-elements
Data-type
(for numeric). The default is A.
NOTE:
If
field-type
can be one of the following:
Buffer Field
INPUT
Logical Field Name
(TEMP1)
Logical Field Name (LU1)
Logical Field Name (PR1)
Logical Field Name
(Field1) [Index]
SCRATCH
is the field's logical name and is under the same restrictions as any
is the buffer field's size in bytes. Enter a value from 1 to 2800. If
is used to define multiple lookup tables. Each name must be unique
is required when the
is the kind of data the buffer field holds. Enter A (for alphanumeric) or N
is PRINTER,
Description
Input Buffer
Temporary Buffer
Field
Lookup Buffer Field
Printer Buffer Field
Array Buffer Field
Scratch Buffer
field-type
data-typ
e must be A.
is set to ARRAY.
Command Reference 5-33

Advertisement

Table of Contents
loading

Table of Contents