SAS Programming

DATA Step, Macro, Functions and more
BookmarkSubscribeRSS Feed
NilNidhiEva
Calcite | Level 5

Hi All,

 

I have very large program and loops in my code, which creating very large log.

so, i am keep getting message that log is full.

 

i does not need log after my execution.

 

how, i can completely turn off log generation ?

3 REPLIES 3
PaigeMiller
Diamond | Level 26

PROC PRINTTO will turn off the log being sent to the LOG window.

 

You can use it to store the log as a text file outside of SAS so that it doesn't appear in the log window; or write the log to a DUMMY file, so the log no longer appears in the log window and isn't saved anywhere.


Examples are here:

https://documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=9.4_3.4&docsetId=proc&docsetTarget=p08blwp...

 

Alternatively

 

options nosource nonotes;
/* Your SAS program goes here */
options source notes;

 

--
Paige Miller
Shmuel
Garnet | Level 18

You can eliminate many lines of being written to log by options:

 

options nosource nosource2 nomprint nosymbolgen nomlogic errors=1;

 

SASKiwi
PROC Star

How would you know if your SAS program had any errors then? If you run your program in batch mode there is no limitation on log size and your program would probably run faster as well.

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

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
  • 8364 views
  • 2 likes
  • 4 in conversation