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 run-group processing?
What are the ways in which macro variables can be created in sas programming?
What is a macro routine?
what are sas/access and sas/connect? : Sas programming
What is by-group processing?
Name and describe few sas character functions that are used for data cleaning in brief.
what is the difference between floor and ceil functions in sas? : Sas-administrator
For a user to have access to a standard workspace server, is internal authentication alone is sufficient? : sas-grid-administration
What makes sas stand out to be the best over other data analytics tools?
name the scheduler for scheduling job and explain the scheduler? : Sas-di
How to sort in descending order?
what is the use of proc sql? : Sas programming
How do you test for missing values?
What is slibref?
what is factor analysis? : Sas-administrator