Please show us (a portion of) the data, as SAS data step code (instructions).
Also, could you explain why this wide format is necessary, what can you do better with a wide format compared to a long format.
There are many ways to convert data from a long form to a wide form in SAS.
Please help us help 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.
Ready to level-up your skills? Choose your own adventure.