BLSHIFT Function

Returns the bitwise logical left shift of two arguments.

Category: Bitwise Logical Operations

Syntax

Required Arguments

argument-1

specifies a numeric constant, variable, or expression.

Range between 0 and (232)-1 inclusive

argument-2

specifies a numeric constant, variable, or expression.

Range 0 to 31, 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 these results.
SAS Statement
Result
x=blshift(07x,2);
put x=hex.;
 
x=0000001C