BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
sasphd
Lapis Lazuli | Level 10

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?

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

ods listing close;

before the program will turn off the listing destination.

You can also redirect it to a file using proc printto.

View solution in original post

3 REPLIES 3
Reeza
Super User

ods listing close;

before the program will turn off the listing destination.

You can also redirect it to a file using proc printto.

SASKiwi
PROC Star

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.

jakarman
Barite | Level 11

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.

---->-- ja karman --<-----

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

What is Bayesian Analysis?

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1596 views
  • 0 likes
  • 4 in conversation