PTRLONGADD Function


PTRLONGADD Function

Returns the pointer address as a character variable on 32-bit and 64-bit platforms

Category: Special

Syntax

PTRADDLONG ( pointer <, amount >)

Arguments

pointer

  • specifies a character string that is the pointer address.

amount

  • 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




SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 704

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net