Date: Mon, 18 Dec 2006 09:54:28 -0500
Reply-To: Gerhard Hellriegel <gerhard.hellriegel@T-ONLINE.DE>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Gerhard Hellriegel <gerhard.hellriegel@T-ONLINE.DE>
Subject: Re: Customised error message?
Content-Type: text/plain; charset=ISO-8859-1
How do you test that variables? What is "invalid"?
It should be no problem to have what you want, like:
test-the-variable;
if test_not_ok then do;
put "ERROR in variable X - it is 0 while it should be not!"
stop;
end;
That might not be what you want, but tell a bit more: what means "invalid",
what are your tests like, what shall happen if error (ok, ABORT, but then
the log is gone! You should reroute the log to a dataset for that!), in what
environment you do it - e.g. the OS, in what mode (foreground, batch?)...
The more you tell us, the more the solution might be closer to that what you
want.
Regards,
Gerhard
On Mon, 18 Dec 2006 19:38:03 +0530, Mohit Bhatia <mohit.b.bhatia@AEXP.COM>
wrote:
>Hi.
> Basically I am checking some variables in the dataset and if there is a
>problem with a certain variable I abort my program. Now I want to know
>which variable caused the problem. So I want customised error messages.
>
>Can we give a customised error message with abort statement.
>
>Or with any other statement which can stop the program.?
>
>Thanks in advance,
>Mohit
>
>American Express made the following
> annotations on 12/18/06, 07:08:08
>------------------------------------------------------------------------------
>******************************************************************************
>
>"This message and any attachments are solely for the intended recipient and
may contain confidential or privileged information. If you are not the
intended recipient, any disclosure, copying, use, or distribution of the
information included in this message and any attachments is prohibited. If
you have received this communication in error, please notify us by reply
e-mail and immediately and permanently delete this message and any
attachments. Thank you."
>
>American Express a ajout� le commentaire suivant le 12/18/06, 07:08:08
>
>Ce courrier et toute pi�ce jointe qu'il contient sont r�serv�s au seul
destinataire indiqu� et peuvent renfermer des renseignements confidentiels
et privil�gi�s. Si vous n'�tes pas le destinataire pr�vu, toute divulgation,
duplication, utilisation ou distribution du courrier ou de toute pi�ce
jointe est interdite. Si vous avez re�u cette communication par erreur,
veuillez nous en aviser par courrier et d�truire imm�diatement le courrier
et les pi�ces jointes. Merci.
>******************************************************************************
> =============================================================================
|