Hello, first of all, thank you previous discussion regarding ODS tagsets.tableeditor. It helped a lot to do PIVOT automation project. Below is my code to create a PIVOT table by using SAS. However, i can only get three summation columns, I won't be able to get the rest. Also, same problem, the sum data shown as row rather than column, even i added the option of pivotdata_tocolumns="yes". Could you help me to take a look at my codes below and see anything wrong...? Super thanks!!! I attached the result i got from the code below. Also, my actual dataset contains about 260,000 obs. when I print the whole dataset, i never be able to open the HTML file i created. Is that because my dataset too big? any suggestions to solve this problem? ods tagsets.tableeditor file="/directory/pivot_test.html" options( button_text = "Create PIVOT table" auto_excel ="yes" excel_save_file="/directory/pivot_test.xlsx" quit="NO" pivotpage = "Reco, R_Method, Po, M, P_G, A_N, B_Q, Gr, S_P, C_O, P_I, F_E" pivotrow = "Month,M_day" pivotdata_tocolumns="yes" pivotdata = "P_Count, P_Amount, P_Average, R_Count, R_Amount, R_Average, N_N_Count, N_N_Amount, N_N_Average, N_Re" pivotdata_stats = "sum" ); proc print data=app.stef (obs=4000); var Reco R_Method Po M P_G A_N B_Q Gr S_P C_O P_I F_E Month M_day P_Count P_Amount P_Average R_Count R_Amount R_Average N_N_Count N_N_Amount N_N_Average N_Re; run; ods tagsets.tableeditor close;
... View more