Date: Wed, 9 Mar 2005 13:26:14 -0800
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "David L. Cassell" <cassell.david@EPAMAIL.EPA.GOV>
Subject: Re: Successful run of a SAS Program
Content-type: text/plain; charset=US-ASCII
Jeff Morison <email@example.com> wrote:
> I am compiling a list of all things to check for a
> successful run of SAS program. Any others I am
> 1. No syntax errors.
> 2. Certain NOTE messages.
> 3. Certain Warning messages.
We have hashed this over in SAS-L about a hundred times.
Your best bet is to look through the SAS-L archives for
threads where this has been discussed, because people have
identified dozens of important NOTE: messages to watch for,
as well as other key issues.
Last November, our inestimable Macro Maven wrote:
==================== RonQuote =============================
I recommend the following excellent NESUG paper
Program Validation: Logging the Log
by Adel Fahmy
http://www.nesug.org/html/Proceedings/nesug04/ap/ap09.pdf (8 pages)
This paper describes a program that scans SAS logs
for a list of over 90 keywords (error, warning ...)
or phrases (has not, must be, never been, no by, ...)
contained in a text file.
if you thought that searching your log
for Error or Warning was enough to get you off the hook
you'll be amazed at how much can go wrong
and you still get output!
================== end RonQuote ============================
Always listen to what Ron Fehd has to say.
> Interestingly one of my colleagues says a successful
> run of SAS program contains the words "SAS Institute
> Inc., SAS Campus Drive, Cary NC USA 27513-2414" at the
> bottom of the LOG file, I don't think this is true all
> the time, when I write the LOG to a FILE using PROC
> PRINTTO I don't see this message.
Expect to see this at the bottom of the log after batch jobs.
You won't see it with PROC PRINTTO or interactive logs saved after
the fact. But there are two fun little problems with looking for
 If you have the LINESIZE short enough, this will wrap. That
means that you have to be really careful if searching for the entire
 You can get this at the bottom of the log EVEN IF YOUR JOB
CHOKED. Consider that you can have the following drastically bad
message showing up:
NOTE: The SAS System stopped processing this step because of errors
NOTE: SAS set option OBS=0 and will continue to check statements
So your job didn't work. And then, at the end of the log, you'll
still get the message
"SAS Institute Inc., SAS Campus Drive, Cary NC USA 27513-2414"
with the clock information. So you *cannot* count on this as a
signal that your job ran properly.
David Cassell, CSC
Senior computing specialist