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
How do you specify the number of iterations and specific condition within a single do loop?
What is the role of administrative users? : sas-grid-administration
Explain the special input delimiters used in sas programming.
what is the difference between unique key and primary key? : Sas-di
What is the difference between where and if statement?
Which date function advances a date, time or datetime value by a given interval?
what do the sas log messages "numeric values have been converted to character" mean? What are the implications? : Sas programming
What are the difficulties u faced while doing vital signs table or dataset?
Explain how you can debug and test your SAS program?
Hi all, If Anybody has Advance SAS Certification dumps??? Please share with me. Email: pramod.kalugade03@gmail.com
what are input dataset and output dataset options? : Sas programming
What are the new features included in the new version of SAS Programming Language?
How substr function works in sas?
what is information maps?
what are several options for creating reports in web report studio? : Sas-bi