RosettaCodeData/Task/Bitwise-operations/SAS/bitwise-operations.sas

13 lines
261 B
SAS
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
/* rotations are not available, but are easy to implement with the other bitwise operators */
data _null_;
a=105;
b=91;
c=bxor(a,b);
d=band(a,b);
e=bor(a,b);
f=bnot(a); /* on 32 bits */
g=blshift(a,1);
h=brshift(a,1);
put _all_;
run;