Returns the memory address of a variable
-
variable
-
specifies a variable name.
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.
The following example returns the address at which the
variable FIRST is stored:
data numlist;
first=3;
x=addr(first);
run;
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.