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 / ashish
proc contents data=abc out=test;
quit;
proc sort data=test;
by name;
quit;
proc sql;
select name into: v_name separated by " " from test;
%put &v_name;
quit;
data abc2;
retain &v_name;
/*retain a g k m o s t w ;*/
set abc ;
run;
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what are sas/access and sas/connect? : Sas programming
I need level 2 to 5 sas using companies in india
I have a dataset concat having variable a b & c. How to rename a b to e & f?
What is run-group processing?
Explain the purpose of retain statement.
what type of graphs we will create(for 2+years candidates)?
How to limit decimal places for the variable using proc means?
Explain what Proc glm does?
What is the use of function Proc summary?
Mention few capabilities of sas framework.
what r the job openings SAS for fresher graduates !
In proc transpose and data step with arrays which one you pick?
what is sas application server, database server, sas olap server and sas metadata server? : Sas-di
What is a pdv and what are its functions?
What is SAS?