CONTEXT: I am a new user to SAS and running through an online e-learning course. Using sample code in the default sashelp library, I am given the following code that is a small test to verify that there are no errors in the log:
title "Car Inventory by Type";
proc freq data=sashelp.cars;
tables Type / nocum;
run;
title;
This returns the following log:
;*';*";*/;quit;run;
2 OPTIONS PAGENO=MIN;
3 %LET _CLIENTTASKLABEL='Program';
4 %LET _CLIENTPROCESSFLOWNAME='Process Flow';
5 %LET _CLIENTPROJECTPATH='';
6 %LET _CLIENTPROJECTNAME='';
7 %LET _SASPROGRAMFILE=;
8
9 ODS _ALL_ CLOSE;
10 OPTIONS DEV=ACTIVEX;
11 GOPTIONS XPIXELS=0 YPIXELS=0;
11 GOPTIONS XPIXELS=0 YPIXELS=0;
________
180
ERROR 180-322: Statement is not valid or it is used out of proper order.
12 FILENAME EGSR TEMP;
13 ODS tagsets.sasreport13(ID=EGSR) FILE=EGSR
14 STYLE=HtmlBlue
15 STYLESHEET=(URL="file:///C:/Program%20Files/SASHome/SASEnterpriseGuide/7.1/Styles/HtmlBlue.css")
16 NOGTITLE
17 NOGFOOTNOTE
18 GPATH=&sasworklocation
19 ENCODING=UTF8
20 options(rolap="on")
21 ;
NOTE: Writing TAGSETS.SASREPORT13(EGSR) Body file: EGSR
22
23 GOPTIONS ACCESSIBLE;
23 GOPTIONS ACCESSIBLE;
________
180
ERROR 180-322: Statement is not valid or it is used out of proper order.
24 title "Car Inventory by Type";
25 proc freq data=sashelp.cars;
26 tables Type / nocum;
27 run;
NOTE: There were 428 observations read from the data set SASHELP.CARS.
NOTE: PROCEDURE FREQ used (Total process time):
real time 0.07 seconds
cpu time 0.06 seconds
QUESTION: My question is why is this error showing up? The output returns fine and as expected. This error returns for every query I make even simple proc print statements returning data sets from the sashelp library.
This has nothing to do with your code.
Are you using SAS Academics on Demand or SAS UE or EG installed locally?
It looks like something not set up correctly somewhere...
My guess is you don't have a license for SAS/GRAPH.
You can verify that by running PROC SETINIT; RUN; and/or PROC PRODUCT_STATUS;RUN;
Ignore it? It doesn't actually stop you from doing anything.
If your company or school has provided a full edition of SAS you can also contact Tech Support and they can likely help.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.