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

explain about data integrator metadata reports? : Sas-di

1046


What is the difference between INPUT and INFILE ?

1251


How is character variable converted into numeric variable and vice versa?

1120


Approximately what date is represented by the SAS date value of 730?

1171


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

1019


Hi, If anyone has base SAS certification dumps, please share.

1816


explain what is factor analysis? : Sas-administrator

1056


What are the difference between ceil and floor functions in sas?

1287


Give e an example of..

2046


What would be the value of month at the end of data step execution and how many observations would be there?

1077


explain the function of substr in sas? : Sas-administrator

961


Mention what is the difference between nodupkey and nodup options?

969


What is the function of Stop statement in a SAS Program?

1099


What is Linear Regression?

1115


What is program data vector (pdv) and what are its functions?

1162