BookmarkSubscribeRSS Feed
GeorgeSAS
Lapis Lazuli | Level 10

Hello,

when SAS error happen, there is a message:

 

"ERROR 180-312: The symbol is not recognized and will be ignored."

 

what does the 200-322 here mean? error's location? how to use this information?

 

Thanks!

7 REPLIES 7
Kurt_Bremser
Super User

The position of the message indicates (in the line above) the location that SAS complains about.

That does not mean the cause is actually there. Often the wrong syntax comes earlier in the code (like a missing semicolon).

 

If you post the relevant log portion (use the {i} icon, so formatting is preserved), we might be able to finde the cause for the message.

GeorgeSAS
Lapis Lazuli | Level 10
Thank you, can you show me how to use the {i} icon??

Thank you very much!
Kurt_Bremser
Super User

When you create a post, on top of the text area you find a sequence of icons:

Formatting: bold, italic, underlined, strikethrough, spoiler tag

The next icon after the little vertical line is the {i}, followed by the running man symbol that opens a window for posting SAS code

Both of these use a fixed-space font; while the option for entering SAS code also adds syntax highlighting, the {i} does not and is therfore good for showing example data or log excerpts.

Just click on the {i} and paste the log part into the window that opens.

GeorgeSAS
Lapis Lazuli | Level 10
53   data a;
54    h t2y ;
      -
      180
ERROR 180-322: Statement is not valid or it is used out of proper
               order.

55   run;

NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set WORK.A may be incomplete.  When this step was
         stopped there were 0 observations and 0 variables.
WARNING: Data set WORK.A was not replaced because this step was
         stopped.

This is an example of error log of the following simple SAS code:

 

data a;

h t2y ;

run;

 the question is how to explain : "180-322:"

Thanks!

Astounding
PROC Star

George,

 

180-322:  Statement is not valid ...

 

This is SAS's way of giving up.  It says that you made an error, but SAS can't figure out a message to supply that would help you correct the problem.

 

There is no "h" statement in SAS.  What is this statement supposed to accomplish:

 

h t2y;

GeorgeSAS
Lapis Lazuli | Level 10

h t2y is just an example to get the error.

Kurt_Bremser
Super User

180-322 is your basic syntax error message: what you wrote is not allowed here, period. It's either rubbish (non-SAS text) or SAS code that might be valid in another place (happens if you accidentally entered a semicolon before some words that still belong to the previous statement)

eg

data x;
(compress=yes);
set .....

sas-innovate-2024.png

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.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 7 replies
  • 2954 views
  • 0 likes
  • 3 in conversation