[英]How do I add two pivot tables to the same Excel sheet through a SAS program using two SAS datasets as the pivot data sources?
[英]How do I vertically stack tables in SAS using ODS Excel?
我正在使用Excel ODS標簽集將一系列的交叉表從SAS 9.3導出到Excel。
我寫的語法如下:
%include 'C:\Users\MyName\Documents\excltags.tpl';
ods tagsets.excelxp file = "M:\Assess\1718\PARTIC_3-8.xml"
proc sort data = assess_elem;
by accommodations_ny participation_ny district;
run;
proc freq data = assess_elem
by accommodations_ny participation_ny district;
tables grade*proficiency / crosslist nocum nocol;
run;
ods tagsets.excelxp close;
變量是:
上面的語法為103個區中的每個區創建了一個這樣的表:
我想擁有的更像是:
使用標簽集選項OPTIONS(SHEET_INTERVAL="Proc")
。
ods tagsets.excelxp
file=...
style=...
options(doc="all" sheet_interval="Proc") /* <--- your magic --- */
;
DOC="ALL"
選項將在日志中顯示ExcelXP標簽集文檔。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.