BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
anming
Pyrite | Level 9
title 'Selected Park Types by Regions';

ods graphics on;
proc freq data=pg1.np_codelookup order=freq;
tables type*region/nocol crosslist;
plots=freqplot(groupby=row scale=grouppercent orient=horizontal);
where Type in ('National Historic Site', 'National Monument', 'National Park');
run;

title;

Has the University Edition SAS Studio disable the plots function? I can run the codes above.

OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
NOTE: ODS statements in the SAS Studio environment may disable some output features.
73
74 title 'Selected Park Types by Regions';
75
76 ods graphics on;
77 proc freq data=pg1.np_codelookup order=freq;
78 tables type*region/nocol crosslist;
79 plots=freqplot(groupby=row scale=grouppercent orient=horizontal);
_____
180
ERROR 180-322: Statement is not valid or it is used out of proper order.

 

1 ACCEPTED SOLUTION

Accepted Solutions
Astounding
PROC Star

There is no PLOTS statement as part of PROC FREQ:

 

https://documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=9.4_3.5&docsetId=procstat&docsetTarget=pro...

 

However, there is a PLOTS= option as part of the TABLES statement.  Try removing the semicolon after CROSSLIST.

View solution in original post

1 REPLY 1
Astounding
PROC Star

There is no PLOTS statement as part of PROC FREQ:

 

https://documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=9.4_3.5&docsetId=procstat&docsetTarget=pro...

 

However, there is a PLOTS= option as part of the TABLES statement.  Try removing the semicolon after CROSSLIST.