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

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

Tip of the Day:December 25

From sasCommunity
Jump to: navigation, search

sasCommunity Tip of the Day

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=;

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.

Feel free to comment on this tip.

Prior tip - Next tip - Random Tip

Submit a Tip