BookmarkSubscribeRSS Feed
yudhishtirb
Calcite | Level 5

Hello Team,

 

Greetings

 

I am just looking to use SQL ISNULL in SAS as below

 

select ISNULL(b.szMagicColumn6,0) as TotalArrears
from db.MagicData b, db.Master a
where a.wclientcode=b.wclientcode and a.szAccountNumber= b.szAccountNumber
and b.wclientcode in (-100);

 

 

But getting following error as 

ERROR: Function ISNULL could not be located.

 

Can you please assist me here ?

 

Thanks In Advance

 

2 REPLIES 2
Reeza
Super User

Try Coalesce function. 

PGStats
Opal | Level 21

SAS hasn't implemented Magic (yet). You still have to look up the documentation. Smiley Very Happy

PG
Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 9815 views
  • 3 likes
  • 3 in conversation