MEMCACHE System Option: Windows

Specifies to use the memory-based libraries as a SAS file cache.

Valid in: configuration file, SAS invocation, OPTIONS statement, SAS System Options window
Category: Files: SAS Files
PROC OPTIONS GROUP= SASFILES
Default: 0
Windows specifics: all

Syntax

-MEMCACHE 0 | 1 | 4
MEMCACHE= 0 | 1 | 4

Required Arguments

0

specifies memory cache is off.

1

specifies not to add any new files to the cache. Reads and writes to files already in the cache continue as if MEMCACHE is on.

4

specifies memory cache is on. Memory is used as a SAS file cache.

Details

When the MEMCACHE system option is 4 or 1, SAS file cache places data in memory as it is processed. This data is then available for future references by SAS. Files in the cache are kept until SAS is shut down, caching is terminated, or more space is required for new files. Memory is reclaimed on a least recently used basis. Cached data is written to permanent storage. You can control which SAS libraries use the cache by using the MEMCACHE system option in the OPTIONS statement. Memory usage can be monitored using the performance tools.