LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (September 1996, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 4 Sep 1996 21:05:47 GMT
Reply-To:     Jonathan Stokes <jonathan@JJT.COM>
Sender:       "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:         Jonathan Stokes <jonathan@JJT.COM>
Organization: JJT Consulting
Subject:      Re: Capture exit of SAS session

Anders Johansson <anders.johansson@GOTEBORG.SE> wrote:

>How can i capture exit of the hole SAS session(ALT-F4 or hitting the exit >buttom in WIN95) in my SAS/AF program? I cant se that TERM is running. I >want to do the SIGNOFF command before exit.

I've run into this before, and haven't come up with a good solution. What I *have* done before is have one frame which is *always* running, and then the -INITCMD option on the SAS involkation works, because the frame comes up automatically when SAS starts, so the TERM section of that frame always runs when the SAS session closes. You could also use the _TERM_ method of a non-visual object to do clean-up, but that object would still have to be instanciated in a task that was always open.

Does anyone else have any suggestions?


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