BookmarkSubscribeRSS Feed
ScottBass
Rhodochrosite | Level 12

Hi,

SAS 9.3

SAS Add-in for Microsoft Office (AMO) 5.1 (5.100.0.12019) (32-bit)

Microsoft Office 2007

Using SAS AMO, do this:

SAS Tab--> SAS Data --> Browse to desired dataset (eg. SASHELP.STOCKS) --> Select Pivot Table, New Worksheet

So far, so good.  I can load a SAS dataset directly into a Pivot Table.

Now, using a stored process (an AMO Report), is there any way to load the output of the stored process directly into a Pivot Table?  I know I can load the data into an Excel worksheet, then use that worksheet as a source for the Pivot Table, but that's not what I want.

I was hoping I could do this using some setting in the stored process, such as a Data Target (output stream) (which I've never used in my stored processes).

Thanks,

Scott


Please post your question as a self-contained data step in the form of "have" (source) and "want" (desired results).
I won't contribute to your post if I can't cut-and-paste your syntactically correct code into SAS.
5 REPLIES 5
FredrikE
Rhodochrosite | Level 12

One way could be to use a information map instead, see note:

http://support.sas.com/kb/39/432.html

I have succesfully tested to open a information map based on a start schema directly into excel pivot!

Regards

Fredrik

ScottBass
Rhodochrosite | Level 12

Thanks Fredrik.  We only have a BI not EBI installation, so no Information Map Studio.

From my usage of AMO, I don't think what we want to do is possible; perhaps someone from SI can confirm this?

As I see it, we could dump the output from the stored process into a hidden worksheet, then build a pivot table from that using Excel's native functionality.  But that's not ideal.

Perhaps we can do more using these approaches, but I'm not sure we want to go there:  http://support.sas.com/resources/papers/proceedings11/012-2011.pdf

Regards,

Scott 


Please post your question as a self-contained data step in the form of "have" (source) and "want" (desired results).
I won't contribute to your post if I can't cut-and-paste your syntactically correct code into SAS.
Cynthia_sas
SAS Super FREQ

Hi:

  The SAS Add-in for Microsoft Office can only accept HTML, CSV and SASReport results from a stored process. Even though TAGSETS.TABLEEDITOR is HTML, it also contains embedded JavaScript, which may not execute from inside the Add-in when the stored process returns results.

  The other thing about TAGSETS.TABLEEDITOR is that you generally open the output in a browser and then click a button to save to Excel (from the browser). When you use a stored process, within the context of the SAS Add-in, the Office Add-in is NOT a browser -- it is Word or PowerPoint or Outlook or Excel.   It may be possible to run TAGSETS.TABLEEDITOR using the Information Delivery Portal or the Stored Process Web App. This would be a question to ask of Tech Support.

cynthia

FredrikE
Rhodochrosite | Level 12

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

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!

Discussion stats
  • 5 replies
  • 1704 views
  • 0 likes
  • 4 in conversation