one more thing, if in the coding I add /* mdy(t1.Sale_Month,1,t1.Sale_Year) as date1, */ to merge Month and Year...how can I do to have my dates appearing on my viwetable in this format MMYY. I have the SAS date in giving me SAS format 19724 instead. can you help me insert the right coding? PROC SQL; CREATE TABLE work.QUERY_FOR_FILTER_FOR_TEST01 AS SELECT t1.PROVINCE, t1.MRKT, t1.Sale_Year, t1.Sale_Month, mdy(t1.Sale_Month,1,t1.Sale_Year) as date1, /* COUNT_of_sale_dt */ (COUNT(t1.sale_dt)) AS COUNT_of_sale_dt FROM SASUSER.FILTER_FOR_TEST01_SALES_COH_0000 t1 GROUP BY t1.PROVINCE, t1.MRKT_L2, t1.Sale_Year, t1.Sale_Month; QUIT; thank you. proc forecast data=SASUSER.QUERY_FOR_FILTER_FOR_TEST01 lead=12 out=prediction; var Count_of_Sale_dt; run;
... View more