BookmarkSubscribeRSS Feed
Mike_Davis
Fluorite | Level 6

Hi guys,

Is that possible to create a interaction for people when people is running a SAS program ?

For example:

When a SAS program is running,then the program comes to a SAS statement/or some special code,the code will pause SAS program and give a message in SAS log to ask user to enter any key to continue running the rest part of the program. when user enter any key on the keyboard, the program will continue running.

Thank you!

Mike

2 REPLIES 2
ballardw
Super User

Look in online help for the WINDOW statement and/or the %WINDOW statement. These don't place anything in the log unless you add logic based the response but will let you enter values and such with base SAS. IIRC these work best between PROCS and Datasteps.

If you have SAS/AF and FSP you can create entire applications with lots of widgets and things.

Cynthia_sas
SAS Super FREQ

However, if the OP is using the BI Platform, then the %WINDOW statement will not be available for several reasons:

1) the %WINDOW statement will not work in Enterprise Guide or any of the client applications in the BI Platform (since all stored processes and task/wizard code are essentially submitted in batch mode)

2) using webAF (the BI web services java beans) and Eclipse is the way to create interactive applications using the BI Platform.

On the other hand, if the OP is using the BI Platorm, then the prompting interface is built to allow for user input -- not so much between steps in a stored process -- but to collect input from the end user in order to have flexible programs.

cynthia

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 778 views
  • 0 likes
  • 3 in conversation