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

How necessary is it to be creative in your work?

2479


If you could design your ideal job, what would it look like?

2931


What would you change about your job?

2390


What is auto call macro and how to create a auto call macro? What is the use of it? How to use it in sas with macros? : sas-macro

1043


How do you convert basic cube to transaction cube and transaction cube to basic cube?

2238


What are the data types does SAS contain?

1120


How would you include common or reuse to be processed along with your statements?

2382


Mention what are the data types does SAS contain?

1155


what is sas metadata server? : Sas-di

1107


Are you involved in writing the inferential analysis plan? Tables specfications?

2229


How to read an input file in sas?

1144


How can you limit the variables written to output dataset in data step?

1321


Are you sensitive to code walk-throughs peer review or QC review?

3145


Differentiate between ceil and floor functions.

1165


Which are the statements whose placement in the data step is critical?

1267