BookmarkSubscribeRSS Feed
Cyclist
Calcite | Level 5

I Have parsed the field "Street" and as a result I got threea additional fields: "Street Name, House Number, Extension".

However, I already had the fields "Street_NAME" and "HOUSE_NUM".

What I would like to do is to make a third column which will be populated in in a way that first the values from the "Street_NAME" column are taken, and if that value does not exist, the value from the parsed columnd "treet Name" is taken. Same principle should be applied to House Number as well.

 

How, and with which nodes can I make this?

2 REPLIES 2
Jagadishkatam
Amethyst | Level 16

you could try using the coalecsec function.

 

new1=coalescec(Street_NAME, Street Name);

new2=coalescec(HOUSE_NUM, House Number);

Thanks,
Jag
Cyclist
Calcite | Level 5

which node I need to use and how (I am new to SAS Data Mgmt Studio)

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 2 replies
  • 973 views
  • 0 likes
  • 2 in conversation