Date: Thu, 6 Oct 2005 13:46:52 -0400
Reply-To: Venky Chakravarthy <swovcc@HOTMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Venky Chakravarthy <swovcc@HOTMAIL.COM>
Subject: Re: UNIX Return Codes
I am not at work to test anything on Unix. My memory is vague on this, but
not too long ago, I received an Exit 1 for a fairly innocuous PROQ SQL
note. I don't remember what it was, but it may have been an ordering by a
variable that was not in the output data. Something like:
NOTE: The query as specified involves ordering by an item that doesn't
appear in its SELECT clause.
At other times, when a driver program generates some Warnings in
driver.log for a useless Macro variable that is not resolving, it is
sometimes overlooked. Granted, the useless macro variable shouldn't exist
in the first place. The driver may direct output (including log) to
another directory while writing its own log to the directory where it is
executed. I have seen people examine the log that is in the routed
directory and ignore the log for the driver and be puzzled by the Exit 1.
I am yet to encounter a situation where the output has changed after I
have fixed the warnings and received a DONE. It could affect the output if
a title relies on a macro variable which was not set in the driver.
I don't know whether there would be a satisfactory answer to your second
question. For example, I don't know whether you can turn off the SQL note
above without also losing the debugging ability of the log.
On Thu, 6 Oct 2005 10:57:37 -0400, Talbot Michael Katz <topkatz@MSN.COM>
>I am running command line / "batch" programs in UNIX. Usually when they
>finish successfully I see a message like:
> Done sas program1.sas
>When they bomb I typically get:
> Exit 2 sas program1.sas
>But recently I got:
> Exit 1 sas program1.sas
>I looked through the log and there were no errors, but there were
>warnings. Did the warnings cause the "Exit 1" return message? If so, is
>there a way to turn off particular warnings that I expect to occur?
>-- TMK --
>"The Macro Klutz"