I need to transpose the table in SAS. Please help
Actual table: This table has 3 million members and my transpose statement is not working. There is some insufficient memory issue that i face.
APP_NO | TYPE | rate |
1 | 1 | 10.9 |
1 | 2 | 5 |
1 | 3 | 7 |
2 | 1 | 8 |
2 | 2 | 9 |
2 | 3 | 23 |
3 | 1 | 44 |
3 | 2 | 23 |
3 | 3 | 34 |
. | . | |
. | . | |
. | . | |
n | 1 | 54 |
n | 2 | 56 |
n | 3 | 55 |
after transpose: THe below table should be the final output.
APP_NO | TYPE_1 | TYPE_2 | TYPE_3 |
1 | 10.9 | 5 | 7 |
2 | 8 | 9 | 23 |
3 | 44 | 23 | 34 |
. | |||
n | 54 | 56 | 55 |
This table has 3 million members and my transpose statement is not working. There is some insufficient memory issue that i face.
For this situation, and in all future situations, saying something "is not working" and providing no additional information never gets us anywhere. In all situations, we need additional information: specifically, if there is an error in the log, we need to see the log. If there is no error in the log but the output is wrong, show us the code and the desired output (you have shown us the desired output but not the code).
At the end of the day you might be running out of resources to process the table
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.