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 interleaving in SAS?

1099


What is SAS?

1045


What is maximum number of rows and cols can be handled in SAS?

1572


Describe a time when you were really stuck on a problem and how you solved it?

2544


what do the sas log messages "numeric values have been converted to character" mean? : Sas programming

1023


What is the use of PROC gplot?

1128


Name types of category in which SAS Informats are placed?

1141


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

1097


What is the basic structure of a sas program?

1108


For a user to have access to a standard workspace server, is internal authentication alone is sufficient? : sas-grid-administration

989


What are pdv and it functions?

1132


how to change the execute of macro

2299


What versions of SAS have you used (on which platforms)?

1505


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

2219


What do you understand by the term Normal Distribution?

979