Date: Thu, 16 Oct 2003 15:36:37 -0400
Reply-To: Howard Schreier <Howard_Schreier@ITA.DOC.GOV>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Howard Schreier <Howard_Schreier@ITA.DOC.GOV>
Subject: Re: stop current program without shutting down SAS session
I was thinking about invoking the SLEEP function with a really large
argument, or in a loop.
It kind of depends on the underlying problem (the situation in which the
requested technique is needed).
On Thu, 16 Oct 2003 13:14:30 -0400, Buchanan, Gordon
>Ok, here is a partial solution (for windows):
>%* error macro for use in a data step;
> put "*** Error *** &msg";
> if getoption('sysin') ^= ' ' | getoption('dmr') = 'DMR' then
> abort return 1;
> else do;
> call execute("dm log 'wattention' continue");
>If running in batch, locally or on a server then abort. If running in
>display manager then end the data step and do an attention command. The
>user does have to deal with two dialog boxes, but it does not execute any
>more datasteps, or procs that follow.
>Now we just need to get rid of the dialogs!