I am trying to use the TableEditor tagset to create an Excel Pivot Table - and so far it's working fine, EXCEPT it's putting all the data into a sheet in the workbook (which I'm guessing is default behavior). However, the reason I want the pivot table in the first place is because my full data will not fit into a worksheet (I'm using a tiny subset to create the pivot table to verify structure). I'd like to be able to programmatically tell ODS to use a SAS dataset (probably through some sort of AMO API) - can I do that?? I've looked through the definitions of both the TableEditor and MSOffice2K** tagsets to see if any of the events/options look like they'd work, but I'm not having much success. Here's what I do have working: ods tagsets.tableeditor file="c:\temp\premsum&q2y4..html" options ( auto_excel = "yes" excel_autofilter = "yes" sheet_name = "Prem &q2y4" pivotrow = "state,product_type" pivotcol = "qtr_year" pivotdata = "totalep" pivotdata_fmt = "[blue] $#,###" excel_save_file = "c:\\temp\\premsum&q2y4..xlsx" quit="NO" ); title1 "Premiums &q2y4."; proc print data=MYPREM.PREMSUM&q2y4.(where=(state in ('NC','SC','GA','VA','TN') and cal_year GE 2023)); run; title1; ods tagsets.tableeditor close; ( @Chevell_sas ??)
... View more