BookmarkSubscribeRSS Feed
Jaime
Fluorite | Level 6
I am using a stored procedure for a report in WRS. I need to ro the Stored Proc way in order to gain some extra security control.
Problem is users want to export the table dumped by proc tabulate.

Is there a way of making the output of proc tabulate easier to export to Excel?
1 REPLY 1
Cynthia_sas
Diamond | Level 26
Hi:
There is a difference between a SAS Stored Process and the kind of stored procedure that you would run in Oracle or DB2. However, if you are using a SAS Stored Process in Web Report studio, you might experiment with running the the same Stored Process in Excel (using the SAS Add-in for Microsoft Office).

Generally, if your SAS Stored Process is designed to execute from different client applications, then you could execute the SAS Stored Process in Word (using the SAS Add-in) and the results would come back to a Word doc. If you execute the SAS Stored Process in Excel (using the SAS Add-in) then the results would come back to a new Excel workbook or worksheet.

So if you use the SAS Add-in to Microsoft Office, you would not need to explicitly -EXPORT- the results to Excel because the stored process results would automatically come back in the correct form (using the SAS Add-in for Microsoft Office).

If your users ONLY have Web Report Studio and do NOT have the SAS Add-in for Microsoft Office, then I believe the "send to Excel" mechanism within WRS is all that is available to you from drop down menus.

cynthia

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1006 views
  • 0 likes
  • 2 in conversation