What does a PROC TRANSPOSE do?

Answer Posted / sarath

We have two different type of TRANSPOSE: “UP” and “DOWN”:

“UP” transpose change rows of a dataset to columns, whereas
the “Down” transpose change columns to rows. We either
use "UP" or "DOWN" tranpose depending upon the requirement.

Whenver we use PROC TRANSPOSE we need to ask some questions
ourselves, since visualizing the PROC Transpose syntax is
not that easy:

To develop the PROC TRANSPOSE syntax we need to know the
answers to the above questions,

1) Which variable/variables need to get transposed?
A) Whatever the variable we mention in the ID statement.
2) What are the variables that need to stay same as in the
input dataset?
A) Variables that are included in the BY statement.
3) Which variables values need to become the values for the
transposed variable.
A) Variables that are included in the VAR statement.
read more at...

http://studysas.blogspot.com/2009/03/proc-transpose-how-to-
convert.html

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the maximum and minimum length of macro variable

652


What are the new features included in the new version of SAS Programming Language?

733


What is PROC in SAS?

602


What is by-group processing?

574


what are the categories that sas informats are used to the place the data? : Sas-administrator

611






Do we follow ADAM in analysis dataset development?How? Usually which version? Why is it necessary?

1908


What would be the value of month at the end of data step execution and how many observations would be there?

573


What are common programming errors committed in sas

667


Explain what is data step?

727


what are the best practices to process the large data sets in sas programming? : Sas-administrator

533


If you were told to create many records from one record, show how you would do this using array and with proc transpose?

796


what is sas database server? : Sas-di

611


What are the implications?

1179


what other sas products have you used and consider yourself proficient in using? : Sas programming

679


hi all, I need the SAS DI DUMP(A00 260) for attending the certification. if any one have, pls provide it.Please Email to vrpotluri@hotmail.com. Thanks - Ramana

4907