Date: Tue, 22 Oct 2002 10:01:59 -0400
Reply-To: Ian Whitlock <WHITLOI1@WESTAT.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Ian Whitlock <WHITLOI1@WESTAT.COM>
Subject: Re: Stopping SAS running using Win NT
Content-Type: text/plain; charset="iso-8859-1"
Simon,
It is a long term neglected problem. The simplest answer is to use %WINDOW
and %DISPLAY to throw up a window and ask the user to his ctrl+break for
you. The alternative is to design the program with macro code so that it
can gracefully stop executing. In the simplest case it can be as easy as
using
"%GOTO MEXIT;" at the right place in the macro and a label %MEXIT at the
bottom of the macro. It gets messier as the error occurs deep and deeper in
a chain of macro calls.
IanWhitlock@westat.com
-----Original Message-----
From: Simon Gillow [mailto:Simon.Gillow@BBG.CO.UK]
Sent: Tuesday, October 22, 2002 9:46 AM
To: SAS-L@LISTSERV.UGA.EDU
Subject: Stopping SAS running using Win NT
We want to conditionally stop SAS running using a simple command, but we
dont want the SAS DMS session terminated as well. We will add some code
that if a certain criteria isnt met then stop running the code from there
onwards.
We are running V8.2 on a NT client and an NT Server using SAS/CONNECT.
I have tried ENDSAS but this closes our SAS DMS session, is there another
command that just stops the run (in much the same way as ctrl+break does)
and returns control to the user?
I have searched the web and help but must be putting in the wrong search
terms as I have found nothing.
Thanks,
Simon
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
Bradford & Bingley plc
Registered Office: PO Box 88, Croft Road, Crossflatts, Bingley, West
Yorkshire, BD16 2UA
Registered in England No. 3938288
Regulated by the Financial Services Authority and a Member of the General
Insurance Standards Council.
http://www.bbg.co.uk
Bradford Bingley plc
**********************************************************************