Copy Bytes Repeatedly (CPYBREP)


Op Code (Hex) Operand 1 Operand 2

10BE Receiver Source

Operand 1: Numeric variable scalar or character variable scalar.

Operand 2: Numeric scalar or character scalar.

Description  The logical string value of the source operand is repeatedly copied to the receiver operand until the receiver is filled. The operands can be either character or numeric. Any numeric operands are interpreted as logical character strings.

The operation begins with the two operands left-adjusted and continues until the receiver operand is completely filled. If the source operand is shorter than the receiver, it is repeatedly copied from left to right (all or in part) until the receiver operand is completely filled. If the source operand is longer than the receiver operand, the leftmost bytes of the source operand (equal in length to the receiver operand) are copied to the receiver operand.

Substring operand references that allow for a null substring reference (a length value of zero) may be specified for operands 1 and 2. The effect of specifying a null substring reference for either operand is that no result is set.

If either operand is a character variable scalar, it may have a length as great as 16,776,191.

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

36 Space Management

44 Protection Violation