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 is sas metadata repository? : Sas-bi
What does P-value signify about the statistical data?
what are some differences between proc summary and proc means? : Sas programming
i want for interview question & answer plz it need immediate send t my mail raviprakashmot@gmal.cm
Name types of category in which SAS Informats are placed?
which features do you use to check the data validations and errors? : Sas-administrator
how can you import .csv file in to sas? : Sas programming
hi all, I need the SAS DI DUMP(A00 260) for attending the certification. if any one have, pls provide it.Please Email to vrpotluri@hotmail.com. Thanks - Ramana
how do you pull data from equifax?tell me the process?
what is metadata? : Sas-bi
What is SAS?
How to import multiple xls files into sas. Out of those files, how to get different values from a single variable and how to find number of rows per value type? We can do this using group by for one xls file with proc sql. Was wondering how I can achieve this for multiple files at the same time. Any ideas?
What is the purpose of _character_ and _numeric_?
what is the difference between calculating the 'mean' using the mean function and proc means? : Sas programming
How many data types are there in SAS?