Functions and CALL Routines

BRSHIFT Function



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

space
Previous Page | Next Page | Top of Page