Ok, I don't know why you want to run a stored process, if it's because you want the most recent data och the ability to subset data before you open the report. One way to at least get the latest data is to add your code before the task code. If you open properites from the SAS add-in tab in excel and chose tasks, you can add code before and after the task. I think that if you add code that creates a table which you have registred in metadata you can first update/create that table and then open it in Excel. So: 1. create table 2. Register in metadata. 3. create code that updates/recreate table 4. add code before task in Excel. 5. open table in pivot. Migtht work?! Regards Fredrik
... View more