Writes a value directly into memory
POKE(source,pointer<,length>)
|
- source
- specifies a SAS expression that contains
a value to write into memory.
- pointer
- specifies a numeric SAS expression that
contains the virtual address of the data that the POKE function alters.
- length
- specifies a numeric SAS expression that
contains the number of bytes to write from the source
to the address indicated by pointer. If you omit length, the action that the POKE function takes depends on
whether source is a character value or a numeric
value:
- CAUTION:
- The POKE function is intended only for experienced programmers in specific
cases.
If you plan to use this function,
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.
If you do not have access to the memory location that
you specify, the POKE function returns an "Invalid argument" error.
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.