I'm currently using SAS Enterprise Guide for one of my assignments and I'm trying to alter my current table to a desired table such as this one. I've already used the split/stack column task, but I'm not sure which variable(s) I should put in certain task role(s) – any suggestions?
Thank you!
You want to use the TRANSPOSE task in SAS EG with the following parameters defined:
https://documentation.sas.com/?activeCdc=egdoccdc&cdcId=egcdc&cdcVersion=8.3&docsetId=egamotasks&docsetTarget=n0f6xtevrykn11n1n8n41ocko1cj.htm&locale=en&docsetVersion=8.3
If you're doing it via code use @LuizZ response instead. The task should build very similar code. Another option is to 'back up' and create that table via a different process or task that will generate it in the format desired at the start.