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

13 lines
261 B
SAS
Raw Permalink Normal View History

2013-04-10 22:43:41 -07: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;