As the first step in the decommissioning of sasCommunity.org the site has been converted to read-only mode.


Here are some tips for How to share your SAS knowledge with your professional network.


Tips:Obtain the Amount of Computer Memory Available to SAS

From sasCommunity
Jump to: navigation, search

You can easily obtain the amount of computer memory available to SAS with the undocumented XMRLMEM option.

data _null_;
    format amt comma20.;
    amt = input(getoption('xmrlmem'),20.);
    put amt=;
run;

The code shown above will give you the total number of bytes of real memory available. (It does not count the operating system's virtual memory; only real memory). You can simply divide this number by 1024 to get it into K's... or whatever to get it into Megs or Gigs.

XMRLMEM is an undocumented diagnostic option that can come in handy when you are considering allocating a bushel-full of buffers or considering doing some big-time hashing. It is described in the SAS Global Forum 2007 paper by Jason Secosky and Janice Bloom, "Getting Started with the DATA Step Hash Object."

Submitted by Michael A. Raithel, The man who wrote the book on performance. Contact me at my Discussion Page.