| Functions and CALL Routines |
| Category: | Special |
| Syntax | |
| Arguments | |
| Details | |
| Examples |
Syntax |
| PTRLONGADD(pointer<,amount>) |
is a character constant, variable, or expression that specifies the pointer address.
is a numeric constant, variable, or expression that specifies the amount to add to the address.
| Tip: | amount can be a negative number. |
| Details |
The PTRLONGADD function performs pointer arithmetic and returns a pointer address as a character string.
| Examples |
The following example returns the pointer address for the variable Z.
data _null_; x='ABCDE'; y=ptrlongadd(addrlong(x),2); z=peekclong(y,1); put z=; run;
The output from the SAS log is: z=C
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.