hi guys ...i have one query...
data abc;
input s w k g o t a m;
cards;
1 2 3 4 5 6 7 8
2 3 4 5 6 7 8 9
;
run;
i want the output to be the sorted order(only
variables).observations should not be changed..
Answer Posted / m.sivakumar
ata abc;
input s w k g o t a m;
cards;
1 2 3 4 5 6 7 8
2 3 4 5 6 7 8 9
;
run;
proc transpose data=abc out=atranabc;
run;
proc print;
title 'Simple Example of PROC TRANSPOSE';
run;
proc sort data=atranabc;
by _name_;
run;
proc print;
run;
proc transpose data=atranabc out=sortabc(drop=_name_);
run;
proc print data=sortabc;
run;
| Is This Answer Correct ? | 16 Yes | 1 No |
Post New Answer View All Answers
What are the difference between the sas data step and sas procs?
what do the pad and dim functions do? : Sas programming
what are sas/access and sas/connect? : Sas programming
What are common programming errors committed in sas
what is the difference between unique key and primary key? : Sas-di
How to limit decimal places for the variable using proc means?
What is auto call macro and how to create a auto call macro? What is the use of it? How to use it in sas with macros? : sas-macro
What are the data types that sas contain?
What is the difference between %put and symbolgen? : sas-macro
how does sas handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, procs? : Sas programming
What are types of transport files?
How does the internal authentication work in sas? : sas-grid-administration
what is the one statement to set the criteria of data that can be coded in any step? : Sas programming
Difference between informat and format?
why is sas data integration studio important? : Sas-di