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 / ram pabba

It is true to use KEEP option on a dataset to only select
few variables from 100 variables.
We can use KEEP option either on set statement or data
step statement. If we use on SET statement then only the
five variables are created on pdv and only these variables
are sent to the output dataset. If we use KEEP option on
data step statement then all the variables are copied into
pdv and after any maniuplation only the selected variables
on data step statement are processed and sent to output
dataset.

data abc;
set xyz (keep= ab cd ef gh);
run;

data abc(keep= ab cd ef gh ij);
set xyz;
ij=ab+jk;
run;

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1074


Where do you use proc means over proc freq?

1122


What is your favorite all time computer book? Why?

2511


how to do user inputs and command line arguments in sas?

3050


Which date function advances a date, time or datetime value by a given interval?

1155


Mention what are the data types does SAS contain?

1153


what is transformation in sas data integration? : Sas-di

1036


What is the difference between %put and symbolgen? : sas-macro

1240


Explain data_null_?

1064


Differentiate between proc means and proc summary.

1064


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

1166


What are the advantages of using sas?

1147


Enlist the functions performed by sas.

1128


Name any two sas spawners? : sas-grid-administration

1040


Name few SAS functions?

1099