CBL_OR performs a binary, bitwise "or" operation on a series of bytes.
CALL "CBL_OR" USING SOURCE, DEST, LENGTH GIVING STATUS
|SOURCE PIC X(n)||The source bytes for the operation.|
|DEST PIC X(n)||The destination bytes for the operation.|
|LENGTH Numeric parameter (optional)||The number of bytes to combine. If omitted, then CBL_OR uses the minimum of the size of SOURCE and the size of DEST.|
|STATUS Any numeric data item||The return status of the operation. Returns 0 if successful, 1 if not. This routine always succeeds, so STATUS always contains a zero.|
For LENGTH bytes, each byte of SOURCE is combined with the corresponding byte of DEST. The result is stored back into DEST. The runtime combines the bytes by performing an "or" operation between each bit of the bytes. The "or" operation uses the following table to determine the result: