BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I wanted to create dynamic prompting in my report
(means : in user prompt if i select a country, the next prompt should contain the states of that country and further on seleting a state the next prompt should filter out the cities in that state.)

but i found that SAS 9.1 lacks dynamic prompting.
i found that it may be possible by linking stored processes together (executing one stored process calls other) but could sort it out.

anybody please assist...

if possible, please tell any other way out for the problem described above...
4 REPLIES 4
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
Your reference to "user prompt" is presumed to be a web application and a browser/user interaction? I performed a SEARCH at the SAS support website http://support.sas.com/ and there technical discussion about this topic (see link below), I believe, that may be of interest.

Scott Barry
SBBWorks, Inc.

SAS 9.1.3 Integration Technologies » Developer's Guide

SAS Stored Processes
--------------------------------------------------------------------------------
Web Application Input
http://support.sas.com/rnd/itech/doc9/dev_guide/stprocess/webinput.html
PhilMason
Obsidian | Level 7
I'll be covering this amongst other things in my upcoming presentation at SAS Global Forum. There are many ways to do this. One I have used recently is to generate HTML from a stored process by writing it to _webout. You can then generate a series of HTML lists which use javascript to achieve what you want.
Another way would be that when you select a country (for example) the stored process is called again, passing the country in to it, you then generate the next list box with states, and so on. We built a very flexible dataviewer using this technqiue.
Cynthia_sas
SAS Super FREQ
Also, in SAS 9.2, this kind of dynamic and cascading prompt should be possible with your stored processes (without writing any custom code).

cynthia
FredrikE
Rhodochrosite | Level 12
Hi!
I have made a macrolibrary to make dynamic prompting in sas 9.1.3.
I use these macros in my stored processes.

It uses a free javascript library: http://www.mattkruse.com/javascript/dynamicoptionlist/
I put JS-code with data _null_; file _webout......

My library is for sale, but I think that you can make it with a little cpoy&paste from Kruse...

Good luck!
//Fredrik

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!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 4 replies
  • 977 views
  • 0 likes
  • 5 in conversation