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 |
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
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.