The OPSBITS function returns a character string whose internal binary representation is all binary zeros, except for the bits that its arguments specify are on. Bit numbers begin with 1, starting at the leftmost bit, so OPSBITS(1) returns '80'X. The character string returned is as long as needed to hold the rightmost on bit specified. For example, OPSBITS(16) returns '0001'X, while OPSBITS(17) returns '000080'X.
Note: You can use the OPSBITS function in OPS/REXX or AOF rules.
OPSBITS has the following format:
var = OPSBITS(bit1[,...,bitn])
|
Copyright © 2014 CA Technologies.
All rights reserved.
|
|