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

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

Answer Posted / aravind9882

u can use keep dataset option or keep statement to limit
the no of variables depending on ur requirement. if u want
process only those 5 variables, u can use keep dataset
option. if u want to limit d variables after d data is
processed u can use keep statement.
data new;
set old(keep=v1 v2 v3 v4 v5);
run;

or

data new;
set old;
keep v1 v2 v3 v4 v5;
run;

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is sas metadata server? : Sas-di

1047


What are the features of SAS?

971


What are the new features included in the new version of SAS Programming Language?

1150


please can you tell me that in companies sas work are doing by through sas coding or sas wizard ??

2054


Name validation tools used in SAS

1102


In proc transpose and data step with arrays which one you pick?

3040


what is sas application server, database server, sas olap server and sas metadata server? : Sas-di

957


Describe 5 ways to do a “table lookup” in SAS?

1087


How many ways to overcome a missing values???

2751


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

1121


what is proc Index? and what is proc document?

2630


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

1055


what is star schema? : Sas-di

1075


What versions of SAS have you used (on which platforms)?

1456


Explain the difference between using drop = data set option in set and data statement?

1102