LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (October 2003, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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 <gordon.buchanan@GMACRFC.COM> wrote:

>Ok, here is a partial solution (for windows): > >%macro error(msg); >%* 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"); > stop; > end; >%mend error; > >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!


Back to: Top of message | Previous page | Main SAS-L page