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

Answers were Sorted based on User's Feedback



Hi im new to sas. I have a file with some charecter variables and some numeric variables now i want..

Answer / sureshkv

data char;
set master;
keep _character_;
run;
data num;
set master;
keep _numeric_;
run;

Is This Answer Correct ?    1 Yes 0 No

Hi im new to sas. I have a file with some charecter variables and some numeric variables now i want..

Answer / 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

More SAS Interview Questions

explain the difference between proc means and proc summary?

0 Answers  


What is the purpose of the trailing and How would you use them?

8 Answers  


how does sas handle missing values in assignment statements? : Sas programming

0 Answers  


who is the best SAS clinical Trainer in Hyderabad?

3 Answers  


is QUALCOMM using SAS ?

1 Answers  


Can you use a macro within another macro? If so how would SAS know where the current acro ended and the new one began?

2 Answers  


What is the one statement to set the criteria of data that can be coded in any step?

4 Answers  


how many data types in sas? : Sas-administrator

1 Answers  


What is SAS?

0 Answers  


What is the difference between informat and format statement?

1 Answers  


SAS System ?

5 Answers  


If you set a label in the data step and call a proc freq on the data, how do you display the data without the labels and just the variables.

1 Answers  


Categories