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?