BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Ashwini
Calcite | Level 5

If  we write a misspelled keyword in coding will get

a.warning message

b.error message

c .both

1 ACCEPTED SOLUTION

Accepted Solutions
Tom
Super User Tom
Super User

It you have one typo then generally you will get either an error or a warning.

You can have two typos and get both.

974  porc mean; run;

     ----

     14

ERROR:Procedure MEAN not found.

WARNING14-169: Assuming the symbol PROC was misspelled as porc.

Of course you could misspell something and generate another valid statement.  In that case you have an error, but you might not get either an error message or a warning message.

View solution in original post

5 REPLIES 5
Tom
Super User Tom
Super User

Is this a question or a statement?

Ashwini
Calcite | Level 5

Dear Tom,

This is question .

Thanks,

Regards,

Ashwini

art297
Opal | Level 21

It's a trick question!  You might get and error or you might get a warning.  I can't recall ever seeing a case where one such error returned both an error and a warning.

Tom
Super User Tom
Super User

It you have one typo then generally you will get either an error or a warning.

You can have two typos and get both.

974  porc mean; run;

     ----

     14

ERROR:Procedure MEAN not found.

WARNING14-169: Assuming the symbol PROC was misspelled as porc.

Of course you could misspell something and generate another valid statement.  In that case you have an error, but you might not get either an error message or a warning message.

Ashwini
Calcite | Level 5

Dear Tom and Art,

Thanks a lot for your .Kind information

Regards,

Ashwini

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!

How to Concatenate Values

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.

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
  • 5 replies
  • 1772 views
  • 0 likes
  • 3 in conversation