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

new_data_set ( will have the five variables with variable
names var1, var2, var3, var4, var5)


data new_data_set;
set old_data_set( keep = var1 var2 var3 var4 var5);
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 do the mod and int function do? What do the pad and dim functions do? : Sas programming

1158


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

1102


what is the use of sas management console? : Sas-di

1082


Briefly explain input and put function?

1071


What is the length assigned to the target variable by the scan function?

1140


Did you used proc test? when?

2029


what is the difference between nodup and nodupkey options? : Sas programming

1177


What is the SAS data set?

1123


How are numeric and character missing values represented internally?

1651


Do you need to know if there are any missing values?

1034


how does sas handle missing values in a merge? : Sas programming

1030


Do you need to rearrange the order of the data for the report?

2301


Explain the difference between informat and format with an example.

1153


Difference between nodup and nodupkey options?

1181


How to import multiple xls files into sas. Out of those files, how to get different values from a single variable and how to find number of rows per value type? We can do this using group by for one xls file with proc sql. Was wondering how I can achieve this for multiple files at the same time. Any ideas?

2917