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 the function of Stop statement in a SAS Program?

1161


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

2572


What are the features of base sas system?

1078


Can you execute a macro within a macro? Describe. : sas-macro

1116


What system options would you use to help debug a macro? : sas-macro

1106


What are the scrubbing procedures in sas?

1020


Mention few capabilities of sas framework.

1200


What commands are used in the case of including or excluding any specific variables in the data set?

1104


Tell me more about the parameters in macro? : sas-macro

1059


What do you know about sas and what we do? : sas-grid-administration

1158


how to read the variables in sas? : Sas-administrator

1028


What are SAS/ACCESS and SAS/CONNECT?

1154


Have you ever used the SAS Debugger?

1769


How many ways to overcome a missing values???

2825


How will you generate test data with no input data?

1183