Help using Base SAS procedures

Create an user interactive activity in SAS code

Reply
Regular Contributor
Posts: 222

Create an user interactive activity in SAS code

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

Super User
Posts: 10,472

Re: Create an user interactive activity in SAS code

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.

SAS Super FREQ
Posts: 8,740

Re: Create an user interactive activity in SAS code

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

Ask a Question
Discussion stats
  • 2 replies
  • 169 views
  • 0 likes
  • 3 in conversation