I created a simple push button, and wanted to test, when I click the button dataset test is created. The name of button is button1. After I created a button and added scl code, I did compilation ant then run the code. No errors or warnings. But dataset test not created.
My scl code is:
init: return;
button1: submit continue; data test; x=1; run; endsubmit; return;
How did you run the AF program? You need to run it using the AF command, otherwise SUBMIT blocks won't work.
Can you please explain, which way can I run AF command?
My steps:
1. I created push button and named it as button1
2. save the button by the same name
3. open scl of button and wrote the code
4. save it
5. compile button , and then click run command
Let's assume that my frame I created within library "Test" and Catalog="Development".
But as I read, because I added scl code, I can't simple run it, I can do it by two ways :
1. in the command prompt I write : AF Test.Development.Button1.FRAME
2. using proc display
There are any other ways to run the scl code?
proc display catalog=Test.Development.Button1.FRAME ;
run;
I have one more problem with proc display:
When I run with proc display and I click the button, I have to close frame to get the result. Why?
I would stick with using the AF command for running the program. I don't have access to SAS/AF to test anything for you and I'm relying on my 20 year old knowledge of AF
Unless that's just you "playing around" implementing new things using SAS/AF is eventually not that future proof but will create technical debt.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.
Find more tutorials on the SAS Users YouTube channel.