BXOR Function
Returns the bitwise logical EXCLUSIVE OR of two arguments.
| Categories: | Bitwise Logical Operations |
| CAS |
Syntax
BXOR(argument-1, argument-2)
Required Argument
argument-1, argument-2
specifies a numeric constant, variable, or expression.
| Range | between 0 and (232)–1 inclusive |
Details
If either argument contains
a missing value, then the function returns a missing value and sets
_ERROR_ equal to 1.
Example
The following SAS statements
produce this result:
|
SAS Statement
|
Result
|
|---|---|
x=bxor(03x, 01x); put x=hex.; |
x=00000002 |
Copyright © SAS Institute Inc. All Rights Reserved.
Last updated: March 16, 2017