schering-
In SAS 9.2 we plan to have a better solution to dynamic prompting. In the mean time, our Technical Support department can provide you with some sample code that will help with your project.
You will need to go to this Web site and open a support track:
http://support.sas.com/techsup/contact/submit_emits2.html
In the Product field, select "SAS Integration Technologies" and for the Subject field, specify "Need stored process STPDefineParameter macro". This will insure that the track gets routed to the people that can help you.
There are a couple of caveats: this is sample code, and it will NOT work in SAS 9.2, as we are making sweeping changes to the parameter model. Yet it may be useful for you now.
One way I envision you using this as follows:
* Run a SAS job to extract Oracle data into a SAS table. This table contains the constraints for the parameter.
* Run the STPDefineParameter macro, passing in the SAS table and any other required parameters (stored process name, parameter name, etc.).
This method is useful if your data does not change often.
Good luck.
Vince DelGobbo
SAS R&D