DATA Step, Macro, Functions and more

ERROR 180-322: Statement is not valid or it is used out of proper order.

Reply
New Contributor
Posts: 4

ERROR 180-322: Statement is not valid or it is used out of proper order.

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.

 

 

Super User
Posts: 23,928

Re: ERROR 180-322: Statement is not valid or it is used out of proper order.

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...

New Contributor
Posts: 4

Re: ERROR 180-322: Statement is not valid or it is used out of proper order.

Thanks for replying. I am using EG. Ok I thought as much, I have uninstalled and reinstalled several times but the same issue is arising. Would you happen to know if there is a specific module or product that I should be excluding or including for this issue to stop?
Super User
Posts: 23,928

Re: ERROR 180-322: Statement is not valid or it is used out of proper order.

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;

 

New Contributor
Posts: 4

Re: ERROR 180-322: Statement is not valid or it is used out of proper order.

Great! I will reinstall, and update the post as answered if it works. Thanks
New Contributor
Posts: 4

Re: ERROR 180-322: Statement is not valid or it is used out of proper order.

Hi Reeza, it didn't work. Do you have any other suggestions?
Super User
Posts: 23,928

Re: ERROR 180-322: Statement is not valid or it is used out of proper order.

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. 

 

Ask a Question
Discussion stats
  • 6 replies
  • 118 views
  • 3 likes
  • 2 in conversation