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 the primary data source for the wrs? : Sas-bi

667


What is the SAS data set?

684


describe about physical data integration? : Sas-di

569


Differences between where and if statement?

592


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

629






what is enterprise guide? What is the use of it? : Sas programming

546


How would you identify a macro variable? : sas-macro

541


what is the effect of the options statement errors=1? : Sas programming

600


What would be the value of month at the end of data step execution and how many observations would be there?

591


If you use a symput in a data step, when and where can you use the macro variable? : sas-macro

614


what is ae onset date n what is RDS

1945


What does proc print, and proc contents are used for?

617


what is operational data and operational system? : Sas-di

646


Explain by-group processing?

599


how do you pull data from equifax?tell me the process?

1390