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


Please Help Members By Posting Answers For Below Questions

what are sas/access and sas/connect? : Sas programming

550


I need level 2 to 5 sas using companies in india

1934


I have a dataset concat having variable a b & c. How to rename a b to e & f?

583


What is run-group processing?

628


Explain the purpose of retain statement.

608






what type of graphs we will create(for 2+years candidates)?

1908


How to limit decimal places for the variable using proc means?

606


Explain what Proc glm does?

643


What is the use of function Proc summary?

657


Mention few capabilities of sas framework.

696


what r the job openings SAS for fresher graduates !

2021


In proc transpose and data step with arrays which one you pick?

2578


what is sas application server, database server, sas olap server and sas metadata server? : Sas-di

555


What is a pdv and what are its functions?

603


What is SAS?

626