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 is PhaseIII, ODS, TLG, Macro and Proc in SAS

4446


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

1085


What is connection profile? : sas-grid-administration

1126


what is the one statement to set the criteria of data that can be coded in any step? : Sas programming

1109


How do dates work in sas?

1086


What are the new features included in the new version of SAS Programming Language?

1168


explain the proc in sas? : Sas-administrator

1047


What is the sas data set? : sas-grid-administration

938


What are common programming errors committed in sas

1112


Mention common programming errors committed in sas ?

1078


what is the use of proc contents and proc print in sas? : Sas-administrator

1011


If you have a dataset that contains 100 variables, but you need only five of those, what is the code to force SAS to use only those variables?

1126


Do you need to compute new variables? If so,should you do this before you execute the report-writing procedure?

1867


What is the difference between INPUT and INFILE ?

1263


What is the difference between proportion and average?

3282