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...

how to shift the rows to cols?
eg:
i have like
field1 field2 field3
10 20 20
this should be displayed as
field1 10
field2 20
field3 30
(without the obs col)

how do this?can i use transpose or tell me suitable way to
do this?

Answer Posted / haritha

by using proc transpose procedure


ur data should be like this

data hyd;
input a$ b$ c$;
datalines;
field1 field2 field3
10 20 30
;
run;

solution will be like this:
proc tranpose data=hyd out=mum;
var a b c;
run;
proc print data=mum noobs;
run;

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Name and describe few sas character functions that are used for data cleaning in brief.

1182


What is program data vector (pdv) and what are its functions?

1318


What are the data types does SAS contain?

1169


What are the difficulties u faced while doing vital signs table or dataset?

2448


what is the basic structure sas administrator? : Sas-administrator

1056


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

2268


why is sas considered self-documenting? : Sas programming

1188


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

1440


how will you locate the sas platform applications? : Sas-bi

1083


How are numeric and character missing values represented internally?

1712


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

1836


How can I remove header from output data set?

2666


Which date function advances a date, time or datetime value by a given interval?

1200


what are 5 ways to perform a table lookup in sas? : Sas-administrator

1296


what is the difference between unique key and primary key? : Sas-di

1176