how to shift the rows to cols?
eg:
i have like
field1 field2 field3
10 20 20
this should be displayed as
field1 10
field2 20
field3 30
(without the obs col)
how do this?can i use transpose or tell me suitable way to
do this?
Answers were Sorted based on User's Feedback
Answer / luclyl
proc transpose data=hyd out=mum (drop=_NAME_);
var a b c;
run;
| Is This Answer Correct ? | 7 Yes | 2 No |
Answer / haritha
by using proc transpose procedure
ur data should be like this
data hyd;
input a$ b$ c$;
datalines;
field1 field2 field3
10 20 30
;
run;
solution will be like this:
proc tranpose data=hyd out=mum;
var a b c;
run;
proc print data=mum noobs;
run;
| Is This Answer Correct ? | 5 Yes | 2 No |
1.we can execute a macro with in a macro,by using call symput and symget can any one give me one example? 2.We can create the macro variables by using %let,%do,macro parameters,INTO clause in proc sql and call symput, can any one give me example to create macro variable with INTO clause and call symput? 3.
what is the purpose of _error_? : Sas programming
what is difference in window SAS & Unix SAS.....how do define working environment in both???
do you prefer proc report or proc tabulate? Why? : Sas programming
what are the new features included in the new version of sas i.e., Sas 9.1.3? : Sas programming
Name some categories in sas 9? : sas-grid-administration
Name statements that function at both compile and execution time?
what is slowly changing dimension? : Sas-di
Which date function advances a date, time or datetime value by a given interval?
What are MIs reports? what is the use of MIS reports and How can u generate the MIS reports in SAS? If any body know explain with the eg.
2 Answers ABC, ASD Lab, CitiGroup,
how can u join the two tables without using proc sql Joins and nested queries ?
Approximately what date is represented by SAS date value of 730