BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
hellorc
Obsidian | Level 7

Closed

 

1 ACCEPTED SOLUTION

Accepted Solutions
Quentin
Super User

There is a TRANSPOSE procedure:

proc transpose data=have out=want (rename=(_Name_=Letter Col1=Value)); 
  by id group subgroup;
run ;

You can also transpose data with arrays.

The Boston Area SAS Users Group is hosting free webinars!
Next up: Troy Martin Hughes presents Calling Open-Source Python Functions within SAS PROC FCMP: A Google Maps API Geocoding Adventure on Wednesday April 23.
Register now at https://www.basug.org/events.

View solution in original post

1 REPLY 1
Quentin
Super User

There is a TRANSPOSE procedure:

proc transpose data=have out=want (rename=(_Name_=Letter Col1=Value)); 
  by id group subgroup;
run ;

You can also transpose data with arrays.

The Boston Area SAS Users Group is hosting free webinars!
Next up: Troy Martin Hughes presents Calling Open-Source Python Functions within SAS PROC FCMP: A Google Maps API Geocoding Adventure on Wednesday April 23.
Register now at https://www.basug.org/events.

sas-innovate-white.png

Special offer for SAS Communities members

Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

Register now!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 1967 views
  • 0 likes
  • 2 in conversation