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

Differentiate between proc means and proc summary.

594


where to use sas business intelligence? : Sas-bi

572


Can you suggest us materials for sdtm mapping?

4028


What are the features of SAS?

569


What do the put and input function do?

581






Difference between sum function and using “+” operator?

592


How can sas program be validated?

570


What is the function of Stop statement in a SAS Program?

638


What are common programming errors committed in sas

665


what is metadata? : Sas-bi

592


What is the use of stop statement?

634


what is transformation in sas data integration? : Sas-di

541


What is the command used to find missing values?

584


explain the main difference between the nodup and nodupkey options? : Sas-administrator

678


Explain what is the use of proc gplot?

695