BITLOCATION
BITLOCATION returns a FIXED BINARY(31,0) result that is the location of bit x within the byte that contains x. The value returned is always between 0 and 7 (0 ≤ value ≤ 7).
Abbreviation: BITLOC
- x
- Reference of type unaligned bit. If x does
not have type unaligned bit, a value of 0 is returned.
x must not be subscripted.
BITLOCATION can be used in restricted expressions, with the following
limitations. If BITLOC(x) is used to set:
- The extent of a variable y that must have constant extents, or
- The value of a variable y that must have a constant value,
For examples, see LOCATION.