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).
Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.
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.
Ready to level-up your skills? Choose your own adventure.