Clear Bit in String (CLRBTS)


Op Code (Hex) Operand 1 Operand 2

102E Receiver Offset

Operand 1: Character variable scalar or numeric variable scalar.

Operand 2: Binary scalar.

Bound program access

Built-in number for CLRBTS is 2. CLRBTS ( receiver : address offset : unsigned binary(4) )

The offset parameter must be between 0 and 65,535.

Description  Clears the bit of the receiver operand as indicated by the bit offset operand.

The selected bit from the receiver operand is set to a value of binary 0.

The receiver operand can be character or numeric. The leftmost bytes of the receiver operand are used in the operation. The receiver operand is interpreted as a bit string with the bits numbered left to right from 0 to the total number of bits in the string minus 1.

The receiver cannot be a variable substring.

The offset operand indicates which bit of the receiver operand is to be cleared, with an offset of zero indicating the leftmost bit of the leftmost byte of the receiver operand.

If an offset value less than zero or beyond the length of the string is specified, a scalar value invalid  (hex 3203) exception is signaled.

Authorization Required

Lock Enforcement

Exceptions

06 Addressing

08 Argument/Parameter

10 Damage Encountered

1C Machine-Dependent

20 Machine Support

22 Object Access

24 Pointer Specification

2E Resource Control Limit

32 Scalar Specification

36 Space Management

44 Protection Violation