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...

How do you read in the variables that you need?

Answer Posted / natraj

In data step and Proc step you can use the data set options
such as KEEP= / DROP= .

ex: data xxx (keep=a); or data xxx ( drop= b c);
run;
proc print data=xxx (keep=a) or ( drop= b c);
run;
you can use the VAR STATEMENT in PRINT PROCEDURE to list
the desired varibles;

ex: proc print data= xxx;
var a ; /* put your desired variables */
run;

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 a method for assigning first.VAR and last.VAR to the BY group variable on unsorted data?

2625


Describe the function and utility of the most difficult SAS macro that you have written?

2625


for whom is sas data integration studio designed? : Sas-di

1057


Compare sas with other data analytics tools.

1091


what other sas products have you used and consider yourself proficient in using? : Sas programming

1161


what do the pad and dim functions do? : Sas programming

1070


How you can read the variables that you need?

1171


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

1140


What are the different types of sas functions?

1355


What are the ways in which macro variables can be created in sas programming?

1168


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

2251


What is the basic structure of a sas program?

1164


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?

1204


How will you use the WHO Drug Dictionary for Reporting Clinical Trials?

2394


How we can create SAS USER DEFINED CODE?

2144