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 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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