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 cause the "error: connect:" and "error in the libname statement" when there weren't any such problems?
Give some examples where proc report’s defaults are different than proc print’s defaults?
what are all the reports you generated in your recent project?
explain the difference between alternate key, business key, foreign key, generated key, primary key, retained key and surrogate key ? : Sas-di
Differentiate between format and informat? : sas-grid-administration
Explain what is SAS informats?
what is the use of proc contents and proc print in sas? : Sas-administrator
What is maximum storage capability of SAS?
How we can create SAS USER DEFINED CODE?
what is proc Index? and what is proc document?
what is change analysis in sas di ? : Sas-di
What are the functions used for character handling?
If you have a dataset that contains 100 variables, but you need only five of those, what is the code to force SAS to use only those variables?
What are pdv and it functions?
Do you need to compute new variables? If so,should you do this before you execute the report-writing procedure?