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.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

LIBNAME 101

Follow along as SAS technical trainer Dominique Weatherspoon expertly answers all your questions about SAS Libraries.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 1170 views
  • 2 likes
  • 2 in conversation