Help using Base SAS procedures

running sas in batch

Accepted Solution Solved
Reply
Frequent Contributor
Posts: 118
Accepted Solution

running sas in batch

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?


Accepted Solutions
Solution
‎08-18-2014 03:38 PM
Super User
Posts: 17,868

Re: running sas in batch

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


All Replies
Solution
‎08-18-2014 03:38 PM
Super User
Posts: 17,868

Re: running sas in batch

ods listing close;

before the program will turn off the listing destination.

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

Super User
Posts: 3,111

Re: running sas in batch

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.

Valued Guide
Posts: 3,208

Re: running sas in batch

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 --<-----
☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

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