Hi,
I am trying to convert the 'have' dataset into the following 'want' dataset. Any help will be appreciated. Thanks!
| HAVE | ||||||||
| id | address1streetnum | address1streetname | address1city | address1zip | address2streetnum | address2streetname | address2city | address2zip |
| 101 | 215 | Market Street | San Francisco | 94016 | 16 | Main Street | New York | 10001 |
| 102 | 957 | Market Street | San Francisco | 94016 | 12 | Main Street | New York | 10001 |
| WANT | ||||||||
| id | addressstreetnum | addressstreetname | addresscity | addresszip | address_num | |||
| 101 | 215 | Market Street | San Francisco | 94016 | 1 | |||
| 101 | 16 | Main Street | New York | 10001 | 2 | |||
| 102 | 957 | Market Street | San Francisco | 94016 | 1 | |||
| 102 | 12 | Main Street | New York | 10001 | 2 |
Navigate AI governance with SAS tools for compliance and ethical AI practices. Try SAS Ai Navigator for free for the first six months.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.