5-48 Command Reference
INC
Purpose Increments numeric fields by one.
Syntax INC
buffer-field
[
,
[
invalid label
] [
, valid label
] ]
Process The INC command increments
buffer-field
.
Buffer-field
can be one of the following:
Buffer Field1
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
Rule:
Buffer-field
must be numeric. A translation error occurs if you increment an
alphanumeric field.
Optional Fields
Invalid
and
valid labels
are discussed in “Script Flow" at the beginning of this
chapter.
If you increment an uninitialized field, the software sets
buffer-field
to 1 and control
passes to
invalid label
. If the field overflows, control also passes to
invalid label
.
Example
This example increments COUNT01.
INC COUNT01
See Also ADD
DEC
SUB
MULTIPLY
DIVIDE