Set the number of commands stored by the Review window
set reventries # [, permanently]
5 <= # <= 32000; default is 5,000
set reventries sets the maximum number of commands stored by the Review
window. The Review window will remember the last # interactive commands
during a Stata session.
permanently specifies that, in addition to making the change right now,
the setting be remembered and become the default setting when you