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 you are maintaining sas programmes in your company...any specific version control software you are using? If so, tell me the name?
what does the run statement do? : Sas programming
What is SAS? What are the functions does it performs?
What is the difference between using drop = data set option in data statement and set statement?
What will calendar procedure do?
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?
Explain data step in SAS
What are the 3 components in sas programming?
What are the automatic variables for macro? : sas-macro
What can be the size of largest dataset in SAS?
How can I remove header from output data set?
Hello Friends, am new to this forum and am not good at sas progarmming. please can any one of you send me couple of sample large sample SAS Jobs which can you use 200 MB of data and other sas job upto 25GB of data. am doing a performance testing on our legacy systems and new upgraded system. I would really appreciate if you can do me this favor Thank you Priya
Name and describe few sas character functions that are used for data cleaning in brief.
Which statement does not perform automatic conversions in comparisons?
what is broad cast agent? : Sas-bi