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

name several ways to achieve efficiency in your program? : Sas programming

1134


Define run-group processing?

1092


what is the difference between: x=a+b+c+d; and x=sum (of a, b, c ,d);? : Sas programming

1180


What is the role of sas grid administrator? : sas-grid-administration

1340


If money were no object, what would you like to do?

3234


Hi, Does anybody has lastest SAS certification(base, adv., clinical)dumps,if anybody has please email me at mailtorajani76@gmail.com. Thanks

2295


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

1193


what is sas and what are the functions? : Sas-administrator

1028


What are the different servers in sas? : sas-grid-administration

1099


What commands are used in the case of including or excluding any specific variables in the data set?

1140


Have you ever used the SAS Debugger?

1815


This entry was posted in General. Bookmark the permalink. Post a comment or leave

4621


What are the five ways to do a table lookup in sas? : sas-grid-administration

1113


what is the Population you used in your project, is it ITT or PP?

2796


What is a method for assigning first.VAR and last.VAR to the BY group variable on unsorted data?

2625