The OPSBITS function returns a character string whose internal binary representation is all binary zeros except that the bits 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 instance, OPSBITS(16) returns '0001'X, while OPSBITS(17) returns '000080'X.
Note: You can use the OPSBITS function in OPS/REXX or AOF rules.
This function has the followings format:
var = OPSBITS(bit1[,...,bitn])
| Copyright © 2012 CA. All rights reserved. | Tell Technical Publications how we can improve this information |