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 you need to know if there are any missing values?
How to test the debugging in sas?
Describe what are the different levels of administrative users in sas? : sas-grid-administration
Mention what is the difference between nodupkey and nodup options?
how to create the AE dataset by using SDTMIG specifications and SAP plan by using UNIX platform?
What is the purpose of _character_ and _numeric_?
What do the sas log messages “numeric values have been converted to character” mean? What are the implications?
What are the functions which are used for character handling functions?
what is the limit of the number of the rows and columns available in the worksheet? : Sas-bi
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?
How do you control the number of observations and/or variables read or written?
Hi Friends, Am Priya,new to your forum. am looking for Interview questions on SAS Platform Administration. I searched everywhere but I couldn't find them,please can anyone help me with complete interview questions normally everyone will face in the interviews on SAS Administration. am really facing problems in the interviews,am not able to answer any of their questions. I would really appreciate all your help if you can email the complete Interview Questions to priyafeb84@gmail.com Kindly awaiting for your reply with eager
What does P-value signify about the statistical data?
what do the sas log messages "numeric values have been converted to character" mean? : Sas programming
If money were no object, what would you like to do?