This was the actual code that got the error: PROC SQL; Create Table z1_Cta_TY_v3_1 as ( SELECT working_month, , company , room , route2 , Destination , Origin , Work_area , A_Week_Ending , B_Week_Ending , SUM(Hours_TY) , SUM(Hourss_LY) FROM work.z1_Cta_TY_v2_1 GROUP BY 1,2,3,4,5,6,7,8,9 ORDER BY 1,2,3,4,5,6,7,8,9 desc ) ; RUN; Note the closing paren is after the ORDER BY group. The error was as follows: 298 GROUP BY 1,2,3,4,5,6,7,8,9 299 ORDER BY 1,2,3,4,5,6,7,8,9 desc ----- 79 300 ); - 22 200 ERROR 79-322: Expecting a ). ERROR 22-322: Syntax error, expecting one of the following: ;, ','. ERROR 200-322: The symbol is not recognized and will be ignored.
... View more