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 are common programming errors committed in sas
Mention few capabilities of sas framework.
Explain data_null_?
Name some categories in sas 9? : sas-grid-administration
explain the key concept of sas? : Sas-administrator
Of all your work, where have you been the most successful?
explain what is data set in sas? : Sas-administrator
How to limit decimal places for variable using proc means?
What are the ways to do a “table lookup” in sas?
what is program data vector? : Sas-administrator
what is the difference between: x=a+b+c+d; and x=sum (of a, b, c ,d);? : Sas programming
What would be the result of the following SAS function (given that 31 Dec, 2000 is Sunday)?
How will you use the WHO Drug Dictionary for Reporting Clinical Trials?
Which function is used to count the number of intervals between two sas dates?
What is SAS?