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

create data set as given above.Next follow the below step.

data abc;
format a $2.;
format g $2.;
format k $2.;
format m $2.;
format o $2.;
format s $2.;
format t $2.;
format w $2.;
set abc;
run;

Run the above program u will get variables in sorted order.

Note:-In the place of format statement u can use length
statement.

Is This Answer Correct ?    2 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a macro routine?

2726


How you can read the variables that you need?

1125


Differentiate between ceil and floor functions.

1162


What are the automatic variables for macro? : sas-macro

1256


how could you generate test data with no input data? : Sas programming

1190


Hello Friends, am new to this forum and am not good at sas progarmming. please can any one of you send me couple of sample large sample SAS Jobs which can you use 200 MB of data and other sas job upto 25GB of data. am doing a performance testing on our legacy systems and new upgraded system. I would really appreciate if you can do me this favor Thank you Priya

1948


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

2564


How to limit decimal places for variable using proc means?

1113


how does sas handle missing values in functions? : Sas programming

1214


What is the maximum and minimum length of macro variable

1255


Describe the function and untility of the most difficult SAS macro that you have written.

2109


What are SAS/ACCESS and SAS/CONNECT?

1149


How do you delete duplicate observations in sas?

1074


what is hierarchy flattening? : Sas-di

1083


Intern stastical programmer written test

758