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 a put statement?

1207


why a stop statement is needed for the point= option on a set statement?

1082


how can you put a "trace" in your program? : Sas programming

1068


Explain translate function?

1213


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

999


Explain the main difference between the sas procedures and functions? : Sas-administrator

1077


Give some ways by which you can define the variables to produce the summary report (using proc report)?

1093


hi all, I need the SAS DI DUMP(A00 260) for attending the certification. if any one have, pls provide it.Please Email to vrpotluri@hotmail.com. Thanks - Ramana

5453


What is the length assigned to the target variable by the scan function?

1158


How might you use MOD and INT on numeric to mimic SUBSTR on character Strings?

1375


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

1109


What are the functions which are used for character handling functions?

1146


What are the functions used for character handling?

1261


What would you change about your job?

2390


explain the function of substr in sas? : Sas-administrator

1014