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

i want for interview question & answer plz it need immediate send t my mail raviprakashmot@gmal.cm

2368


How can sas program be validated?

1032


What are the applications primarily used by business analyst? : Sas-bi

994


what is hierarchy flattening? : Sas-di

1071


Differentiate between sas functions and sas procedures.

1227


How do you control the number of observations and/or variables read or written? Approximately what date is represented by the SAS date value of 730?

1670


What is a method for assigning first.VAR and last.VAR to the BY group variable on unsorted data?

2585


Explain what is SAS informats?

1092


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

1058


what is metadata? : Sas-bi

1029


What are the data types that sas contain?

1176


if you were told to create many records from one record, show how you would do this using array and with proc transpose? : Sas programming

1062


How do you specify the number of iterations and specific condition within a single do loop?

1102


how do you want missing values handled? : Sas programming

955


What are the data types in sas?

1060