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
What is the general format of function in sas? : sas-grid-administration
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.
What is interleaving in SAS?
name some data transformation used in sas di? : Sas-di
How does proc sql work?
Explain how merging helps to combine data sets.
Differentiate between proc means and proc summary.
what is a method for assigning first.var and last.var to the by groupvariable on unsorted data? : Sas programming
Explain the main difference between the sas procedures and functions? : Sas-administrator
What versions of SAS have you used (on which platforms)?
it will become easy if uuu provide website linkssss and list of consultanciessssss
What are the data types that sas contain?
Mention how to limit decimal places for the variable using proc means?
What Proc glm does?
What is the purpose of _character_ and _numeric_?