PEEKLONG Function: Windows

Stores the contents of a memory address in a numeric variable on 32-bit and 64-bit platforms.

Category: Special
Interaction: When a SAS server is in a locked-down state, the PEEKLONG function does not execute. For more information, see SAS Processing Restrictions for Servers in a Locked-Down State in SAS Language Reference: Concepts.
Windows specifics: all
See: PEEKLONG Function in SAS Functions and CALL Routines: Reference and PEEKCLONG Function in SAS Functions and CALL Routines: Reference
CAUTION:
The PEEKLONG functions can directly access memory addresses. Improper use of the PEEKLONG functions can cause SAS, and your operating system, to fail.
Use the PEEKLONG functions only to access information that is returned by one of the MODULE functions.

Syntax

PEEKLONG(address<,length)>

Required Argument

address

specifies a character expression that is the memory address.

Optional Argument

length

specifies the length of the character data.

Details

The PEEKLONG function returns a value of length length that contains the data that start at memory address address.
The variations of the PEEKLONG functions are
PEEKCLONG
accesses character strings.
PEEKLONG
accesses numeric values.
Usually, when you need to use one of the PEEKLONG functions, you use PEEKCLONG to access a character string.