BIT_NOT macro
The BIT_NOT macro is available in IBM® Campaign and IBM® Interact.
Syntax
BIT_NOT data ~ data
Parameters
data
The non-negative integers to bitwise NOT. This can be a constant value, a column, a cell range, or an expression evaluating to any of the above. For the format definition of data, see the "Macro Function Parameters" section in the chapter in this guide for your IBM® product.
Description
BIT_NOT calculates the bitwise NOT of the values in the specified data range. It returns one new column for each input column, each containing the bitwise NOT of the values in the corresponding columns of data.
*
*
Using a column containing the same number x in each row as data is the same as using the constant x as data.
*
The BIT_NOT operator can be abbreviated with a tilda (~). Use the tilda before the data value (for example, to specify BIT_NOT(V1), you can simply type ~V1.
Examples
TEMP = BIT_NOT 3 or TEMP = ~3
Creates a new column named TEMP containing the value four (bitwise NOT of 011 equals 100).
Creates a new column named TEMP, where each value is the bitwise NOT of the contents of column V1.
Creates three new columns named TEMP, VX, and VY. The values in the TEMP column are the bitwise NOT of the contents of column V1, the values of the VX column are the bitwise NOT of the contents of column V2, and the values of the VY column are the bitwise NOT of the contents of column V3.
Creates a new column named TEMP, where the first 101 cells contain the bitwise NOT of the values in rows 1-50 of column V1.
Related Functions
BIT_XOR or XOR