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 / surendra
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 transpose data=abc out=bca;
var s w k g o t a m;
run;
proc sort data=bca;
by _name_;
run;
proc transpose data=bca out=mca(drop=_name_);
id _name_;
var col1 col2;
run;
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain proc univariate?
What is the use of stop statement?
Explain how you can debug and test your SAS program?
What are pdv and it functions?
What is interleaving in SAS?
How would you determine the number of missing or nonmissing values in computations?
how does sas handle missing values in formats? : Sas programming
Define run-group processing?
What are the applications primarily used by business analyst? : Sas-bi
In proc transpose and data step with arrays which one you pick?
hi all, I need the SAS DI DUMP(A00 260) for attending the certification. if any one have, pls provide it.Please Email to vrpotluri@hotmail.com. Thanks - Ramana
explain the use of % includes a statement in sas? : Sas-administrator
data data1; input dt account; format dt date9.; cards; 1745 1230 1756 1120 1788 1130 1767 1240 ; data data2; input startdt enddt total; format startdt date9. enddt date9.; cards; 1657 1834 12300 1557 1758 16800 1789 1789 12300 1788 1345 12383 1899 1899 13250 ; proc sql; create table data3 as select * from data1 as x left join data2 as y on x.dt>=y.startdt and x.dt<=y.enddt; quit; Here, we are getting cartision product. But,I want left join report consisting of this program. It should not get duplicate values. you can modify the program also.
what is sas and what are the functions? : Sas-administrator
Difference between sum function and using “+” operator?