5-16 Command Reference
BITSET
Purpose Sets the specified bit to one.
Syntax BITSET
buffer-field1
,
bit-position
[ , [
invalid label
] [ ,
valid label
] ]
Process The BITSET command sets the specified bit by
bit-position
in
buffer-field
to one.
Bit-position
can be 0 to 15. If
bit-position
is out of range and
invalid label
is
defined, control passes to that label.
RULE: Both
buffer-field1
and
bit-position
must be numeric.
Buffer-field
and
bit-position
can be one of the following:
Buffer-field
and
bit-position
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
Asc-field only:
Number
String
A number prefixed by
the number sign (#)
ASCII string delimited
by double quotes
SCRATCH Scratch buffer
Optional Fields
Invalid
and
valid labels
are discussed in “Script Flow" at the beginning this chapter.
Example
This example sets bit number two of TEMP1 to one.
BITSET TEMP1, #2
See Also BITCLEAR
BITMASK
BITSHIFT
BITTEST