Chapter Contents

Previous

Next
PEEK

PEEK



Accesses the data stored in a specific location in memory

Windows specifics: all


Syntax
Details

Syntax

data=PEEKC(address,length);
data=PEEK(address,length);

data
is the value that is returned by the function.

address
specifies the name identifying a location (address) in memory.

length
specifies the length of the returned value.


Details

CAUTION:
Use the PEEK functions only to access information returned by one of the MODULExy functions. The PEEK functions can directly access memory addresses. Improper use of these functions can cause the SAS System, and your operating system, to fail.  [cautionend]

The PEEK function returns to data a value of length length that contains the data that start at memory address address.

The variations of the PEEK functions are:
PEEKC accesses character strings.
PEEK accesses numeric values.

Usually, when you need to use one of the PEEK functions, you will use PEEKC to access a character string. The PEEK function is mentioned here for completeness.


Chapter Contents

Previous

Next

Top of Page

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