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?

Answers were Sorted based on User's Feedback



how to shift the rows to cols? eg: i have like field1 field2 field3 10 20 20 this sh..

Answer / luclyl

proc transpose data=hyd out=mum (drop=_NAME_);
var a b c;
run;

Is This Answer Correct ?    7 Yes 2 No

how to shift the rows to cols? eg: i have like field1 field2 field3 10 20 20 this sh..

Answer / 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

how to shift the rows to cols? eg: i have like field1 field2 field3 10 20 20 this sh..

Answer / guest

you can also use arrays to shift rows into columns.

Is This Answer Correct ?    2 Yes 3 No

Post New Answer

More SAS Interview Questions

what is proc Index? and what is proc document?

0 Answers   Mind Tree,


What is LAG function?How is it used? can any one explain

3 Answers   TRE, Verinon Technology Solutions,


What are types of transport files?

2 Answers   PRA Health Sciences, Quintiles,


explain what is factor analysis? : Sas-administrator

0 Answers  


What is the difference between where and if statement?

0 Answers  


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

0 Answers  


what is the difference between proc report and proc format?

7 Answers   CTS,


Which date functions advances a date time or date/time value by agiven interval?

3 Answers  


Do you need to rearrange the order of the data for the report?

0 Answers  


Can you excute a macro within a macro? Describe.

2 Answers   Genta,


What is the difference between nodupkey and nodup options?

0 Answers  


in the flow of data step processing, what is the first action in a typical data step? : Sas programming

0 Answers  


Categories