Your SAS programs, embedded in web apps and elsewhere

Log window output

Accepted Solution Solved
Reply
Super Contributor
Posts: 266
Accepted Solution

Log window output

Can any one please help me to getridof this error(snapshot attached).

I run a big program, after some time this window popup .

please suggest.

Thanks


log window.png

Accepted Solutions
Solution
‎11-28-2013 09:12 AM
New Contributor
Posts: 3

Re: Log window output

You have different options:

1. suppress the output: Suppressing Information to the SAS Log

2. write to a file: Routing the Output and the SAS Log with PROC PRINTTO

Good luck!

View solution in original post


All Replies
Solution
‎11-28-2013 09:12 AM
New Contributor
Posts: 3

Re: Log window output

You have different options:

1. suppress the output: Suppressing Information to the SAS Log

2. write to a file: Routing the Output and the SAS Log with PROC PRINTTO

Good luck!

Contributor
Posts: 30

Re: Log window output

In addition to Tom's advice, it might be worth trying to figure out why the log is so large.

When I get "log full" type problems, it usually turns out to be because something in my program is generating a very large number of notes/warnings. For instance, if I'm doing something that generates a note at every observation of a 2-million-observation file, that will choke up the log very quickly. One way to identify this is to run the program on a smaller data set so that I can look at the log and see what's taking up the space. If I can identify a step that's spamming the log, I can then fix that problem without needing to shut off logging altogether.

Super User
Super User
Posts: 7,050

Re: Log window output

If you submit the program as a background or batch job then you will not get those messages.  If you really have a long running job then that is how you should be submitting the code anyway.  That said you should still look into WHY the job is generating such a large log file.

Super Contributor
Posts: 266

Re: Log window output

Hi Thomas. Thanks for your guidance,,, Its very helpful. Can you please let me how can i run a .sas file in batch mode. when i m running my programme in cmd prompt its always open SAS programe, and if i create .BAT file it also doing same.

can you please help me .

Super User
Super User
Posts: 7,050

Re: Log window output

The normal way that I submit SAS programs is to include the filename on the command line when I type the command that starts SAS.

Example:  sas myfile

This will look for the code in myfile.sas and write the log to myfile.log and the listing output to myfile.lst.  This is how SAS has worked since it was first available on interactive systems.

Now if you are trying to use Windows then it may be harder to invoke SAS from the command line, but when SAS is installed it should create multiple associations into the Windows Registry for .sas files.  So if you right click on SAS program file in a Windows Explorer window you should have a choice for Batch submit.

Super Contributor
Posts: 266

Re: Log window output

Thanks for your kind help

Super User
Posts: 3,254

Re: Log window output

This might help - it explains the DMSLOGSIZE option available from SAS 9.2 onwards for increasing the default size:

http://support.sas.com/kb/5/888.html

🔒 This topic is solved and locked.

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

Discussion stats
  • 7 replies
  • 928 views
  • 6 likes
  • 5 in conversation