The STATS system option
specifies that statistics are to be written to the SAS log. If STATS
is in effect and MEMRPT is in effect, then the total memory used by
the SAS session is written to the SAS log for each step.
Additional memory statistics
can be written to the SAS log by specifying the FULLSTATS system option.
Note that the program
memory statistics reported by FULLSTATS reflect the size of respective
program images or load modules; they do not include the size of the
DATA step programs or other code that is generated dynamically by
SAS software.