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 |
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.