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

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 9725 views
  • 3 likes
  • 3 in conversation