BookmarkSubscribeRSS Feed
SwapnaKumari
Fluorite | Level 6


Hi,

I am working to create a code which can replace the value of null column with a values of another not null column by using Expression node, but facing challenge. can anyone please help to get the code for this.

Thanks in advance.

1 REPLY 1
MikeFrost
SAS Employee

Where column1 is the possible null column and column2 is the not null column, try:

If isnull(column1) then
  Column1 = column2

sas-innovate-white.png

Missed SAS Innovate in Orlando?

Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.

 

Register now

How to connect to databases in SAS Viya

Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 1453 views
  • 1 like
  • 2 in conversation