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 general format of function in sas? : sas-grid-administration

573


data data1; input dt account; format dt date9.; cards; 1745 1230 1756 1120 1788 1130 1767 1240 ; data data2; input startdt enddt total; format startdt date9. enddt date9.; cards; 1657 1834 12300 1557 1758 16800 1789 1789 12300 1788 1345 12383 1899 1899 13250 ; proc sql; create table data3 as select * from data1 as x left join data2 as y on x.dt>=y.startdt and x.dt<=y.enddt; quit; Here, we are getting cartision product. But,I want left join report consisting of this program. It should not get duplicate values. you can modify the program also.

1803


What is interleaving in SAS?

679


name some data transformation used in sas di? : Sas-di

548


How does proc sql work?

618






Explain how merging helps to combine data sets.

618


Differentiate between proc means and proc summary.

606


what is a method for assigning first.var and last.var to the by groupvariable on unsorted data? : Sas programming

572


Explain the main difference between the sas procedures and functions? : Sas-administrator

542


What versions of SAS have you used (on which platforms)?

1018


it will become easy if uuu provide website linkssss and list of consultanciessssss

1535


What are the data types that sas contain?

660


Mention how to limit decimal places for the variable using proc means?

647


What Proc glm does?

611


What is the purpose of _character_ and _numeric_?

592