DATA Step, Macro, Functions and more

misspelled keyword

Accepted Solution Solved
Reply
Frequent Contributor
Posts: 76
Accepted Solution

misspelled keyword

If  we write a misspelled keyword in coding will get

a.warning message

b.error message

c .both


Accepted Solutions
Solution
‎11-19-2011 08:51 PM
Super User
Super User
Posts: 6,500

misspelled keyword

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

ERRORSmiley Tonguerocedure 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


All Replies
Super User
Super User
Posts: 6,500

misspelled keyword

Is this a question or a statement?

Frequent Contributor
Posts: 76

misspelled keyword

Dear Tom,

This is question .

Thanks,

Regards,

Ashwini

PROC Star
Posts: 7,363

misspelled keyword

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.

Solution
‎11-19-2011 08:51 PM
Super User
Super User
Posts: 6,500

misspelled keyword

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

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

Frequent Contributor
Posts: 76

Re: misspelled keyword

Dear Tom and Art,

Thanks a lot for your .Kind information

Regards,

Ashwini

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 5 replies
  • 287 views
  • 0 likes
  • 3 in conversation