Date: Mon, 26 Aug 2002 08:04:41 -0700
Reply-To: Meredith Clark <clarkmeredith@YAHOO.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Meredith Clark <clarkmeredith@YAHOO.COM>
Subject: Re: AF-problem V6->V8
In-Reply-To: <B5807016D00BD511A99700005A429752015FE0CD@VHVMAIL2>
Content-Type: text/plain; charset=us-ascii
You can try in your config file
-nodmsexp
From the online help:
"By default, SAS log and procedure output (if any)
appear on your display as each step executes. "
This is the scl for a frame I have which allows me to
do straight Base SAS programming while in my AF
session. The output window is explicitly called and
when it's closed it goes back to the frame:
PRVW:
call wregion(5,5,10,70);
rc=preview('EDIT');
submit continue;
options pageno=1;
endsubmit;
return;
RUNBUT:
call execcmdi('out');
return;
HTH
Meredith
--- "Becker, Eckhard [IAW-04]" <EBecker@VHV.DE> wrote:
> Hi all,
>
> I'm desperately looking for an advice for my
> af-program.
>
> Maybe there is something I missed: What I really
> want is the possibility to
> prevent a user of an AF-application to go to the
> editor (either pgm or
> enhanced).
>
> The following code is working in SAS 6.12 (Win),
> when called via -initcmd in
> the config-file:
>
> I have a 'start'-frame with a pushbutton, the
> section is:
> ----
> button:
>
> submit continue;
>
> %macro WARTE;
>
> data x; do i=1 to
> 10000;y=ranuni(-1);end;run;proc print;run;
>
> %mend WARTE;
>
> endsubmit;
>
> call display('warte.frame');
>
> return;
>
> ----
> so what I do here is define a macro and call another
> frame. This frame's
> task is to show a 'pls be patient'-msg to the user
> and execute the macro.
> SCL for this frame:
> ----
> init:
>
> call execcmd('end');
>
> return;
>
>
>
> term:
>
> submit continue;
>
> %WARTE;
>
> run;
>
> endsubmit;
>
> return;
> ----
> so nothing dramatic in it. Works fine in V6, but
> here is what happens in
> V8.2:
>
> When I invoke the output-window after executing the
> macro, I can see the
> produced output, fin, BUT when I hit F3 (=END) to
> leave the output-window, I
> don't get back to my start-frame as in V6 but the
> PGM-window is opened :-(((
>
> The 'solution' from SI to drop the 'continue' in the
> term-section from the
> 'warte'-frame and insert an empty
> submit continue;
> endsubmit;
> block after the call display in the start frame
> executes the macro with the
> warte-frame on top (I don't even know why, I had
> thought, execution of the
> macro would be done after terminationg and closing
> the warte-frame), but
> when I leve my start-frame with the end-command, the
> ouput-window is opened
> again and hitting F3 starts the pgm. this is of
> cause not the desired effect
> when closing the last af-frame, SAS should be
> terminated then.
>
> Any idea where to look, what to do? I'm working on
> it for a couple of weeks
> and the suggestions from SI didn't help so far :-(
>
> Eckhard
__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com
|