Hi PG, Thanks for you reply. It seems that the version I am using could not recognize many options. I copied the log files in the following: proc sgplot data=out_data(where=(pd_Seg='Term')) pctlevel=group; ________ 22 76 ERROR 22-322: Syntax error, expecting one of the following: ;, CYCLEATTRS, DATA, DATTRMAP, DESCRIPTION, NOAUTOLEGEND, NOCYCLEATTRS, PAD, SGANNO, TMPLOUT, UNIFORM. ERROR 76-322: Syntax error, statement will be ignored. 25 vbar dist_yyq/ response=dist_yearqr stat=percent name="vbar" grouporder=ascending _______ 22 76 ERROR: No data set open to look up variables. ERROR: No data set open to look up variables. ERROR 22-322: Syntax error, expecting one of the following: FREQ, MEAN, SUM. ERROR 76-322: Syntax error, statement will be ignored. 26 group=ltv_grp; 27 keylegend "vbar"/sortorder=ascending; _________ 22 76 ERROR 22-322: Syntax error, expecting one of the following: ;, ACROSS, BORDER, DOWN, LOCATION, NOBORDER, POSITION, TITLE, TITLEATTRS, VALUEATTRS. ERROR 76-322: Syntax error, statement will be ignored. 28 xaxis fitpolicy=thin; 29 run; In order to solve for this problem. Do you have any recommendation? Thanks a lot.
... View more