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

Hi im new to sas. I have a file with some charecter variables and some numeric variables
now i want to load charecter variables into one datastep and numeric variables into another data step pls let me know
Thanks

Answer Posted / chaudhary_1989

data a;
infile "C:Documents and SettingssasadmDesktopSASMacro est1.txt" firstobs=2;
input num1 num2 num3 c1$ c2$ num4 c3$;
run;

data b;
set a;
keep _numeric_;
run;

data c;
set a;
keep _character_;
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 sas metadata repository? : Sas-bi

1054


Which command is used to save logs in the external file?

1031


what is transformation in sas data integration? : Sas-di

975


Differentiate between ceil and floor functions.

1105


what is a method for assigning first.var and last.var to the by groupvariable on unsorted data? : Sas programming

963


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

963


What is substr function?

1118


Give some examples where proc report’s defaults are different than proc print’s defaults?

1012


What is the use of divide function?

1014


What does the RUN statement do?

1257


What are the difference between the sas data step and sas procs?

1104


What is auto call macro and how to create a auto call macro? What is the use of it? How to use it in sas with macros? : sas-macro

983


how to generate the test data in sas without input data? : Sas-administrator

1052


how many types prompting framework can be broken down to? : Sas-bi

1035


Tell me about % include and % eval? : sas-macro

1099