NC STATE University
SAS Consulting, Department of Statistics 

SAS version 8.2


How can I supress my SAS log?


Method 1

This method is nice because it works in batch and interactive mode, on PCs and UNIX. Also, with this method you can turn the log off for selected parts of your SAS job.

With this method, a log file will be created, but it will be very short. Note: The first proc printto turns the log off and the second turns it back on.

 filename junk dummy;
proc printto  log=junk; run;
      
INSERT YOUR CODE HERE

proc printto; run;

Method 2

With this method no log file is created; however, this method works for UNIX batch mode only.
Instructions for submitting batch jobs can be found at Batch Jobs.

With this method, you do not modify your code, instead you submit your batch job with the SAS system option -log set to /dev/null.
If your program is running out of memory, you may also need to set the memsize option.

If you are using LSF:
sas -memsize 0m -log /dev/null program.sas

If you are using BEOWULF, these SAS system options must be added to the options file.
-log /dev/null -memsize 0m program.sas


For additional information see, How do I get more memory or workspace for my SAS jobs?
[an error occurred while processing this directive]
Maintained by:Sandy Donaghy and Joy Smith
Last Modified: Monday, 14-Oct-2002 08:00:58 EDT
Filename: /working_groups/sas/samples/base/nolog.html