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 is sas olap server? : Sas-di
What are the functions used for character handling?
What commands are used in the case of including or excluding any specific variables in the data set?
What is the basic syntax of a sas program?
how do you test for missing values? : Sas programming
How do you use the do loop if you don’t know how many times you should execute the do loop?
What is the use of stop statement?
i want for interview question & answer plz it need immediate send t my mail raviprakashmot@gmal.cm
How do you debug and test your SAS programs?
what is the difference between nodup and nodupkey options? : Sas programming
what is the one statement to set the criteria of data that can be coded in any step? : Sas programming
Describe a time when you were really stuck on a problem and how you solved it?
I have a dataset concat having variable a b & c. How to rename a b to e & f?
What is interleaving in SAS?
What areas of SAS are you most interested in?