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 / anuj verma
data abc;
infile cards flowover;
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= abcd;
run;
proc sort data=abcd; by _name_; run;
proc transpose data =abcd out= abcde;
run;
proc print; run;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is auto call macro and how to create a auto call macro? What is the use of it? How to use it in sas with macros? : sas-macro
why is sas data integration studio important? : Sas-di
Explain what is SAS informats?
what is the effect of the options statement errors=1? : Sas programming
What are the ways in which macro variables can be created in sas programming?
What will calendar procedure do?
explain about sas business intelligence? : Sas-bi
what is scheduling and how will u implement it. In scheduling 5 jobs r running if there is an error occured at 3rd job and how will u check and waht necessary steps will u take not to repeat the same mistake
if the Id has more then two transcatiion then show the first observation, IF Id has only two observation then It show both the observation
describe the interaction table in sas di? : Sas-di
Can you execute a macro within a macro? Describe. : sas-macro
How can I remove header from output data set?
How is character variable converted into numeric variable and vice versa?
What is the command used to find missing values?
Explain data_null_?