Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Restricting size of Log when running SAS in Batch mode?

Status
Not open for further replies.
Jul 31, 2008
1
GB
Hi,
I've inherited some SAS code from a colleague, which involves different processes being run in Batch mode. Occasionally one of the processes gets stuck in an indefinite loop, and I often don't find out until the log file gets so large it fills up the disk space.

Is there any way I can monitor the log, so that SAS will stop the process once it gets to a certain critical size?

Any help or ideas would be very much appreciated!

Thanks,
Mark
 
Best bet is to fix the piece of code which produces the infinite loop.
If it's a DO loop, I usually put a counter in there then break from the loop if it reaches a certain threshold. You could then add in some error handling process.
the ABEND command might be useful to you, as it will cause SAS to end abnormally (ie with an error status).

Chris
Business Analyst, Code Monkey, Data Wrangler.
SAS Guru.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top