Hi Community,
I have an issue that I am trying to resolve and much appreciate any help that can be given. Thank you for your time and help.
I have a dataset that has a list of visits(Shown below)
Visit Name | Order |
Screening | 1 |
First Visit | 2 |
Week a | 3 |
Week aa | 4 |
Week b | 5 |
Week bb | 6 |
Week c | 7 |
Week cc | 8 |
List of Subject IDs.
IDs |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
I need to merge these to create a list of visits for each subject. I have shown below how the end dataset should look like for 1 subject. But need it for all the subjects in the same dataset.
ID | Visit Name | Order |
1 | Screening | 1 |
1 | First Visit | 2 |
1 | Week a | 3 |
1 | Week aa | 4 |
1 | Week b | 5 |
1 | Week bb | 6 |
1 | Week c | 7 |
1 | Week cc | 8 |
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!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.