The SAS® Output, Log, and Program Editor windows can display approximately 99,999 lines each. If you receive messages indicating that the SAS Log window is full, you can stop the messages from occurring:
There are several options available to prevent the Log window from filling up.
Suppress the listing of the entire log, or part of the log, for later SAS program submissions. Do not suppress all the log messages until you have successfully executed the program without an error.
Add the following OPTIONS statement to the top of your SAS program to suppress printing to the log:
If you want to change the options back to the default and start printing to the log again, submit the following OPTIONS statement:
The SAS system options are as follows:
Errors - specifies the maximum number of observations for which data error messages are printed. Notes - controls whether messages beginning with NOTE are written to the SAS log. Because notes are required for debugging, use this option until your program is error free. Source - controls whether SAS program source statements are written to the SAS log. Source2 - controls whether secondary source statements and notes about secondary source statements from files included by %INCLUDE statements are written to the SAS log.
Redirect the contents of the Log window to a file instead of the Log window. To accomplish this, add the following code to the top of your program:
Note: Use the drive letter, subdirectory, and filename that correspond to your installation in the command above. The subdirectory must already exist on your machine.
Then, at the end of your program, add the following code to redirect the output back to the Log window:
You can then view your file.log text file in SAS, Notepad, the SAS System Viewer, or any other text editor.
In SAS® 9.2, DMSLOGSIZE is a new SAS system option that enables you to designate the maximum number of rows that the Log window can display. The default is 99,999 rows. The range is 500 to 999,999 rows. To change the option, add the following code to the top of your sasv9.cfg file, starting in column 1:
The number 150000 shown above is just an example. You can change this value to the number of rows that are required for your installation. Save the sasv9.cfg file and restart SAS.
In SAS® 9.1, if you attempt to use this option, the scroll size is not extended. Therefore, you might receive an error when you scroll in the Output window. However, it does allow the program to complete without the log-window-full message.
Note: A similar option, DMSOUTSIZE, is available for the SAS Output window. For details, see SAS Note 12452: "The message "Output window full" appears in Microsoft Windows operating environments." A similar option is not available for the Program Editor window. Use the Enhanced Editor window instead.
|Product Family||Product||System||SAS Release|
|SAS System||Base SAS||Microsoft Windows NT Workstation||8 TS M0|
|Microsoft Windows XP Professional||8.2 TS2M0||9.2 TS1M0|
|Microsoft Windows 95/98||8 TS M0|
|Microsoft Windows Server 2003 Standard Edition||9 TS M0||9.2 TS1M0|
|Windows Millennium Edition (Me)||8.2 TS2M0|
|Microsoft Windows 2000 Datacenter Server||8 TS M0|
|Microsoft Windows 2000 Professional||8 TS M0|
|Microsoft Windows 2000 Server||8 TS M0|
|Microsoft Windows Server 2003 Datacenter Edition||9 TS M0||9.2 TS1M0|
|Microsoft Windows Server 2003 Enterprise Edition||9 TS M0||9.2 TS1M0|
|Microsoft Windows 2000 Advanced Server||8 TS M0|
|Date Modified:||2010-01-22 13:44:20|
|Date Created:||2001-09-18 12:21:07|