Chapter Contents

Previous

Next
ADDR

ADDR



Returns the memory address of a variable

Category: Special


Syntax
Arguments
Details
Examples
See Also

Syntax

ADDR(variable)

Arguments

variable
specifies a variable name.


Details

The return value is always numeric. Because the storage location of a variable may vary from one execution to the next, based on many factors, the value returned by ADDR may vary. This function is used mostly in combination with the PEEK and PEEKC functions and the POKE CALL routine.


Examples

The following example returns the address at which the variable FIRST is stored:

data numlist;
   first=3;
   x=addr(first);
run;

See Also

CALL Routine:
CALL POKE
Functions:
PEEK
PEEKC


Chapter Contents

Previous

Next

Top of Page

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