Your SAS programs, embedded in web apps and elsewhere

How to link two stored process

Reply
N/A
Posts: 0

How to link two stored process

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...
Super Contributor
Super Contributor
Posts: 3,174

Re: How to link two stored process

Posted in reply to deleted_user
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
Contributor
Posts: 23

Re: How to link two stored process

Posted in reply to deleted_user
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.
SAS Super FREQ
Posts: 8,868

Re: How to link two stored process

Posted in reply to PhilMason
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
Regular Contributor
Posts: 191

Re: How to link two stored process

Posted in reply to deleted_user
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
Ask a Question
Discussion stats
  • 4 replies
  • 271 views
  • 0 likes
  • 5 in conversation