Hello,
I am running a large database on sas in batch. SAS generates two files: .LOG file is the log for the program that has been executed and .LST file is the output file for the program that has been executed.
the .LST file is too big. How can I do to do not generate it?
ods listing close;
before the program will turn off the listing destination.
You can also redirect it to a file using proc printto.
ods listing close;
before the program will turn off the listing destination.
You can also redirect it to a file using proc printto.
There must be steps in your SAS program that are producing the .LST file. such as PROC PRINT, PROC REPORT, etc.
The first option is to remove these steps from your program. The advantage of this approach is that your program will run quicker without them.
The second option is to add an: ODS LISTING CLOSE; statement at the start of your program so that NO steps producing output will be written to your .LST file. The advantage of this approach is only a minor change is necessary. Also if you want output from just some of your program steps you can use ODS LISTING; to turn on listing just for those. This option should also speed up your program but not as much as the first option.
Do you want the programs untouched (test /validate) reasons you can dump the output in a Nullfile.
Each OS his a differnet approach for that. The disadvantage is that the reports processing is still done.
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.