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

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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