Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 / hetal bhalani

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;

**Transpose your data by listing all the variables you want
to transpose in the VAR statement**

proc transpose data =abc ;
var s w k g o t a m;
run;

**Now you have to sort the values in _name_ variable in asc
**
proc sort data=data1;
by _name_ ;
run;

**now transpose again using _name_ in the ID statement**

proc transpose data=data1 out=data2(drop=_name_);
id _name_;
run;

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How is character variable converted into numeric variable and vice versa?

1106


How would you determine the number of missing or nonmissing values in computations?

1009


How to create a permanent sas data set?

1137


which date functions advances a date time or date/time value by a given interval? : Sas programming

902


Give an example where SAS fails to convert character value to numeric value automatically?

1026


what is sas metadata server? : Sas-di

1047


what are validation tools that are used in sas? : Sas-administrator

1001


What function CATX syntax does?

1165


what is the difference between: x=a+b+c+d; and x=sum (of a, b, c ,d);? : Sas programming

1076


how can you put a "trace" in your program? : Sas programming

1004


what is metadata? : Sas-bi

968


Define run-group processing?

980


what are all the reports you generated in your recent project?

2128


What is connection profile? : sas-grid-administration

1109


what is data access? : Sas-di

1079