BookmarkSubscribeRSS Feed
Ronein
Meteorite | Level 14

Hello

I run long sas program.

In Log I see a message: :Maximum Log size has been exceeded"

My question-

I still want to see in Log the step of running and if there is any error or warning.

What should I write (code) in order to see the Log but in short?

 

Ronein_0-1745859191867.png

 

3 REPLIES 3
Amir
PROC Star

Hi,

 

Have you tried the options in the SAS page Suppressing Information to the SAS Log ? 

 

Alternatively, proc printto can be used to redirect the log to an external file.

 

 

Thanks & kind regards,

Amir.

ballardw
Super User

WHY is your log size so large?

 

Are getting lots of warnings such as invalid data messages from a data step?

Are you specifically writing stuff to the log?

A macro loop that generates 100,000 calls to a procedure?

 

Did you open the log externally as suggested? Can you discuss the contents? Several of the above types of log entries can be reduced or indicate that your code needs adjustment.

SASKiwi
PROC Star

This post includes a number of suggestions that will help including setting the DMSLOGSIZE option to MAX.

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 400 views
  • 0 likes
  • 4 in conversation
OSZAR »