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

For what purposes have you used sas macros? : sas-macro

950


Differentiate between sas functions and sas procedures.

1143


In SAS explain which statement does not perform automatic conversions in comparisons?

1261


What is the general format of function in sas? : sas-grid-administration

915


what are sas/access and sas/connect? : Sas programming

939


How to create an external dataset with sas code?

1067


Explain the use of proc gplot? : sas-grid-administration

927


What do the PUT and INPUT functions do?

1268


what is snowflake schema? : Sas-di

1144


how does sas handle missing values in procs? : Sas programming

1154


How would you invoke a macro? : sas-macro

1037


what is the effect of the options statement errors=1? : Sas programming

1000


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

1046


What are the five ways to do a table lookup in sas? : sas-grid-administration

992


What is the role of sas grid administrator? : sas-grid-administration

1231