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 / venu
/*Sorting order by variable*/
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;
proc print data=abc;
run;
proc contents data=abc out=xyz;
run;
proc sql;
select name into :mac separated by " " from xyz;
quit;
proc print data=abc;
var &mac;
run;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Do we follow ADAM in analysis dataset development?How? Usually which version? Why is it necessary?
what is factor analysis? : Sas-administrator
if you were told to create many records from one record, show how you would do this using array and with proc transpose? : Sas programming
Explain how merging helps to combine data sets.
what are some good sas programming practices for processing very large data sets? : Sas programming
explain about various caches available in data integrator? : Sas-di
Tell e how how dealt with..
What is the difference between the proc sql and data step?
If you were told to create many records from one record, show how you would do this using array and with proc transpose?
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 control the number of observations and/or variables read or written? Approximately what date is represented by the SAS date value of 730?
Explain the use of proc gplot? : sas-grid-administration
What function CATX syntax does?
what is enterprise guide? What is the use of it? : Sas programming
What are types of transport files?