Chapter Contents

Previous

Next
CALL POKE

CALL POKE



Writes a value directly into memory

Category: Special


Syntax
Arguments
Details
See Also

Syntax

CALL POKE(source,pointer<,length>);

Arguments

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 CALL POKE routine 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 CALL POKE routine takes depends on whether source is a character value or a numeric value:


Details

CAUTION:
The POKE 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. This routine 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]

If you do not have access to the memory location that you specify, the POKE routine returns an "Invalid argument" error.

See Also

Functions:

ADDR
PEEK
PEEKC
POKE


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.