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

proc contents data=abc out=test;
quit;


proc sort data=test;
by name;
quit;

proc sql;

select name into: v_name separated by " " from test;
%put &v_name;


quit;


data abc2;
retain &v_name;
/*retain a g k m o s t w ;*/
set abc ;

run;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what cause the "error: connect:" and "error in the libname statement" when there weren't any such problems?

2183


Give some examples where proc report’s defaults are different than proc print’s defaults?

1075


what are all the reports you generated in your recent project?

2199


explain the difference between alternate key, business key, foreign key, generated key, primary key, retained key and surrogate key ? : Sas-di

1075


Differentiate between format and informat? : sas-grid-administration

1062


Explain what is SAS informats?

1094


what is the use of proc contents and proc print in sas? : Sas-administrator

1063


What is maximum storage capability of SAS?

1425


How we can create SAS USER DEFINED CODE?

2098


what is proc Index? and what is proc document?

2723


what is change analysis in sas di ? : Sas-di

1060


What are the functions used for character handling?

1260


If you have a dataset that contains 100 variables, but you need only five of those, what is the code to force SAS to use only those variables?

1165


What are pdv and it functions?

1147


Do you need to compute new variables? If so,should you do this before you execute the report-writing procedure?

1921