7

In SAS, while using in a WHERE clause, is there any differnece between

WHERE col1 is MISSING

vs

WHERE col1 is NULL

Can you explain citing the case when col1 is char and when col1 is numeric?

Victor
  • 16,609
  • 71
  • 229
  • 409

1 Answers1

5

WHERE col1 is NULL and WHERE col1 is MISSING are identical: SAS translates between the two freely (the documentation refers to them as one). Both pick up character missing, numeric missing, and numeric special missings (.M etc.) fine.

See the SAS documentation for more specific information on IS NULL / IS MISSING.


Note that this is only true for SAS-side processing. If you're connected to another kind of database/data source (such as Oracle, SQL Server, etc.), these do not necessarily apply - even if you're running it in PROC SQL with a LIBNAME.

Joe
  • 62,789
  • 6
  • 49
  • 67