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


Please Help Members By Posting Answers For Below Questions

What is run-group processing?

628


What are the ways in which macro variables can be created in sas programming?

573


What is a macro routine?

2106


what are sas/access and sas/connect? : Sas programming

551


What is by-group processing?

579






Name and describe few sas character functions that are used for data cleaning in brief.

671


what is the difference between floor and ceil functions in sas? : Sas-administrator

708


For a user to have access to a standard workspace server, is internal authentication alone is sufficient? : sas-grid-administration

540


What makes sas stand out to be the best over other data analytics tools?

591


name the scheduler for scheduling job and explain the scheduler? : Sas-di

600


How to sort in descending order?

800


what is the use of proc sql? : Sas programming

600


How do you test for missing values?

1062


What is slibref?

748


what is factor analysis? : Sas-administrator

617