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 |
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 16. Read more here about why you should contribute and what is in it for you!
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.
Select SAS Training centers are offering in-person courses. View upcoming courses for: