Date: Fri, 10 May 1996 15:41:37 -0700
Reply-To: Ronald Max Atwood Jr <matwood@IX.NETCOM.COM>
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: Ronald Max Atwood Jr <matwood@IX.NETCOM.COM>
Subject: Developing an application in SCL/Frame entry
Well I am developing my first application using SCL and Frame entry.
(e.i. I am a newbie at this portion of SAS). I have a question about
the way the SAS session operates during these applications and/or the
development sessions. I have a SAS program that I am trying to
"convert" to an object oriented/frame entry application (I am trying to
do the same thing I do in the program using frame entries and SCL.) To
start with, I have created a "mainmenu" frame and written the
associated SCL as follows (in part):
init:
rc=preview('copy','init01.source');
submit continue;
endsubmit;
return;
..
Here "init01.source" is source SAS code I have in the same catalog as
my frame entry. This code is mainly used to create some libnames and
formats used by code later in the application.
As a test, I started a SAS session and created a libname pointing to
the library with the catalog containing the above frame oject and
source code in it. I then issued the appropriate "af" command from the
command window. The mainmenu object appeared and behaved appropriately
(right now there are only some simple objects (push buttons) built into
it which just call other objects to the screen, there is no real
underlying tasks/programs built into the application yet.) The quit
button worked and the frame disappeared. However, there was no record
of the events in that took place in the log (including the SAS code
submitted and run in the "init" section of the SCL). I also checked
for messages in the message window - nothing. Further, I tested the
formats that where to be created only to discover they did not exist.
I have tested the source code as a stand alone (submitting it from the
program editor) and it runs clean.
What is happening here? I assume that because the frame appeared and
was able to run appropriately, that the init section of the SCL ran.
Does this set up a separate session of it's own (complete with a
separate SAS log)? How to I get at the log to make sure the SAS code
submitted under SCL is running as I want it to? If the SAS code did
run (as I assume that it did) why were the formats not available under
in the same session I ran the test in? If I set some temporary formats
when I first call up the application, will they be available to code
submitted from SCL associated with other objects further down in the
application?
Sorry if I sound like a newbie with stipid questions but you how it is
when you first start out on something new. Thanks in advance.
Max Atwood (matwood@ix.netcom.com)