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 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 1329 views
  • 2 likes
  • 2 in conversation