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

Give some examples where proc report’s defaults are same as proc print’s defaults?

1102


what do the mod and int function do? What do the pad and dim functions do? : Sas programming

1158


Differentiate between ceil and floor functions.

1150


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

3943


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

2202


what can you learn from the sas log when debugging? : Sas programming

1077


Differences between where and if statement?

1075


What are the prime responsibilities of data integration administrator? : Sas-di

1057


what is sas metadata server? : Sas-di

1097


Difference between informat and format?

1081


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

1124


what do you mean by data staging area? : Sas-di

1129


If you were told to create many records from one record, show how you would do this using array and with proc transpose?

1480


How would you define the end of a macro? : sas-macro

1086


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

1056