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

in data set - use keep
in proc step- use var ,id statements

ex-
data a;
infile urfilename;
input score1-score100;
keep sore1-score5;
run;

input a;
input score1-scor100
run;
proc print data=a;
var score1-score5;
id score1-score5;
run;

observe id-in this statement nuber of obs not displed in
out put

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are all the reports you generated in your recent project?

2129


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

1159


What is the use of stop statement?

1017


What areas of SAS are you most interested in?

1474


What are the differences between sum function and using “+” operator?

1032


What is interleaving in SAS?

1063


Describe the ways in which you can create a macro variable?

1035


what is business intelligence? : Sas-bi

1014


What is the difference between nodupkey and nodup options?

972


what has been your most common programming mistake? : Sas programming

1030


what is treatment emergent events and treatment emregent adverse event

2325


How does the internal authentication work in sas? : sas-grid-administration

1066


What are the applications primarily used by business analyst? : Sas-bi

941


I have a dataset concat having variable a b & c. How to rename a b to e & f?

962


Mention what is PROC in SAS?

1010