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 --<-----

sas-innovate-2024.png

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.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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