Stata 15 help for scrollbufsize
Set the Results window scrollback buffer size
set scrollbufsize #
10000 <= # <= 2000000
set scrollbufsize sets the scrollback buffer size, in bytes, for the
Results window. The default value of scrollbufsize is 200,000 and can be
set within the range from 10,000 to 2,000,000.
The scrollbufsize determines how far back you can scroll in the Results
The change in buffer size does not occur in the current Stata session;
instead, the new buffer size takes effect the next time Stata is started.