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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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
  • 1078 views
  • 1 like
  • 2 in conversation