Functions and CALL Routines |
Writes a value directly into memory on 32-bit and 64-bit platforms.
CALL
POKELONG(source,pointer<,length>,<floating-point>)
|
-
source
-
specifies a character constant, variable,
or expression that contains a value to write into memory.
-
pointer
-
specifies a character string that contains
the virtual address of the data that the CALL POKELONG routine alters.
-
length
-
specifies a numeric SAS expression that
contains the number of bytes to write from the source
to the address that is indicated by the pointer.
If you omit length, the CALL POKELONG routine
copies the entire value of source to the specified
memory location.
- floating-point
-
specifies that the value of source
is stored as a floating-point number. The value of floating-point can be any number.
Tip: |
If you do not use the floating-point argument, then source is stored
as an integer value. |
- CAUTION:
- The CALL POKELONG
routine is intended only for experienced programmers in specific cases.
If you plan to use this routine, use extreme care both
in your programming and in your typing. Writing directly into memory
can cause devastating problems. It bypasses the normal safeguards that
prevent you from destroying a vital element in your SAS session or in another
piece of software that is active at the time. ![[cautionend]](../../../../common/63294/HTML/default/images/cautend.gif)
If you do not have access to the memory location that
you specify, the CALL POKELONG routine returns an "Invalid argument" error.
If you use the fourth argument, then a floating-point number is assumed
to be the value that is stored. If you do not use the fourth argument, then
an integer value is assumed to be stored.
Functions and CALL Routines:
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.