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 / m.sivakumar

ata 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=atranabc;
run;
proc print;
title 'Simple Example of PROC TRANSPOSE';
run;
proc sort data=atranabc;
by _name_;
run;
proc print;
run;
proc transpose data=atranabc out=sortabc(drop=_name_);
run;
proc print data=sortabc;
run;

Is This Answer Correct ?    16 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I remove header from output data set?

2066


Do you need to know if there are any missing values?

601


What would be the result of the following SAS function (given that 31 Dec, 2000 is Sunday)?

687


Mention some common errors that are usually committed in sas programming.

594


how to create the AE dataset by using SDTMIG specifications and SAP plan by using UNIX platform?

2293






Hi all, If Anybody has Advance SAS Certification dumps??? Please share with me. Email: pramod.kalugade03@gmail.com

1587


What are pdv and it functions?

606


How to limit decimal places for variable using proc means?

592


What is a method to debug and test your SAS program?

726


explain the concepts and capabilities of business object? : Sas-bi

546


How does proc sql work?

618


How do you debug and test your SAS programs?

1050


How to limit decimal places for the variable using proc means?

606


How to specify variables to be processed by the freq procedure?

619


what is hash files in sas and why we are using this one in sas?

1734