I have about 20,000 records. SAS 9.4 listing output seems to be creating an index for each TNumber and it takes forever to clear the output window. This was not the case in 9.2. Is there a way to quickly clear the output window?
proc sort data=one;
by tnumber;
run;
proc print data=one;
by tnumber;
run;
@GreggB: Thanks for pointing this out. I've just replicated the issue. It really takes very long, regardless of which method I use to clear the output window (Ctrl-N, Ctrl-E, menu, line command, button, via Results). The large number of BY groups causes the issue, not just the number of observations.
I was about to recommend PROC PRINTTO as a workaround, when I discovered the following trick:
Does this work for you?
@PGStats: Thanks for mentioning Ctrl-N. I only knew Ctrl-E (from the good old KEYS window).
Why would you want to write 20 000 records to the Output window? When I happen to send something to the Outout window by error, I use Ctrl-N to clear the window.
@GreggB: Thanks for pointing this out. I've just replicated the issue. It really takes very long, regardless of which method I use to clear the output window (Ctrl-N, Ctrl-E, menu, line command, button, via Results). The large number of BY groups causes the issue, not just the number of observations.
I was about to recommend PROC PRINTTO as a workaround, when I discovered the following trick:
Does this work for you?
@PGStats: Thanks for mentioning Ctrl-N. I only knew Ctrl-E (from the good old KEYS window).
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.