Command Reference 5-41
FIELDLEN
Purpose Places the length of a field into another field.
Syntax FIELDLEN
buffer-field1
,
buffer-field2
[ , [
invalid label
] [
, valid label
] ]
Process The FIELDLEN command calculates the length of
buffer-field1
and places it in
buffer-field2
.
The
buffer-field
fields can be one of the following:
Buffer Field1
and
2
Description
INPUT Input Buffer
Logical Field Name
(TEMP1)
Temporary Buffer
Field
Logical Field Name (LU1) Lookup Buffer Field
Logical Field Name (PR1) Printer Buffer Field
Logical Field Name
(Field1) [Index]
Array Buffer Field
Buffer-field1
only:
String
Number
ASCII string delimited
by double quotes.
Number prefixed by a
number sign (#)
Rule:
Buffer-field2
must be numeric.
Optional Fields
Invalid
and
valid labels
are discussed in “Script Flow" at the beginning of this
chapter.
Example 1
This example places the length of WHOLESALE into TEMP2. Control passes to the
next line.
FIELDLEN WHOLESALE,TEMP2