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 substr function?

1174


what is ae onset date n what is RDS

2563


what is data access? : Sas-di

1133


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

1196


why is sas considered self-documenting? : Sas programming

1136


Can you execute macro within another macro? If so, how would sas know where the current macro ended and the new one began? : sas-macro

1191


Name types of category in which SAS Informats are placed?

1141


How would you identify a macro variable?

1084


what is sas database server? : Sas-di

1111


How to create list output for cross-tabulations in proc freq?

1104


what is the difference between: x=a+b+c+d; and x=sum (of a, b, c ,d);? : Sas programming

1132


For what purpose would you use the RETAIN statement?

1510


explain the difference between proc means and proc summary?

1114


What is the difference between one to one merge and match merge? Give an example.

1056


Give e an example of..

2334