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

What is the role of unrestrictive users? : sas-grid-administration

1017


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

1147


Explain the purpose of retain statement.

1072


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

1086


explain the proc in sas? : Sas-administrator

1099


Explain the use of proc gplot? : sas-grid-administration

1000


what do the sas log messages "numeric values have been converted to character" mean? What are the implications? : Sas programming

1283


Difference between nodup and nodupkey options?

1201


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

1073


What is the difference between INPUT and INFILE ?

1333


how many display types available in sas bi dashboard? : Sas-bi

1095


How are numeric and character missing values represented internally?

1671


Will it bother you if the guy at the next desk times the frequency and duration of your bathroom or coffee breaks on the grounds that ?you are getting paid twice as much as he is??

2620


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

1270


Differentiate between ceil and floor functions.

1170