Chapter Contents

Previous

Next
BRSHIFT

BRSHIFT



Returns the bitwise logical right shift of two arguments

Category: Bitwise Logical Operations


Syntax
Arguments
Examples

Syntax

BRSHIFT(argument-1, argument-2)

Arguments

argument-1
is numeric, nonnegative, and nonmissing.
Range: 0 to the largest 32-bit unsigned integer

argument-2
is numeric, nonnegative, and nonmissing.
Range: 0 to 31, inclusive


Examples

SAS Statements Results
x=brshift(01Cx,2);
put x=hex.;
 
x=00000007


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.