Set Bit in String (SETBTS)


Op Code (Hex) Operand 1 Operand 2

101E Receiver Offset

Operand 1: Character variable scalar or numeric variable scalar.

Operand 2: Binary scalar.

Bound program access

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

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

Description  Sets 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 1.

The receiver operand can be a character or numeric variable. 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 offset operand indicates which bit of the receiver operand is to be set, with an offset of zero indicating the leftmost bit of the leftmost byte of the receiver operand. This value may be specified as a constant or any valid binary scalar variable.

If a offset value less than zero or beyond the length of the receiver 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