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

How do you add a number to a macro variable?

3 Answers  


Do you need to know if there are any missing values?

0 Answers  


There are 200 observations in a dataset, i want to pull out the observation no's 100, 150,180,190 by using Proc SQL? How you can get it?

5 Answers  


Code a PROC SORT on a data set containing State, District and County as the primary variables, along with several numeric variables.

7 Answers   Accenture,


What do the sas log messages “numeric values have been converted to character” mean? What are the implications?

0 Answers  


Describe what are the different levels of administrative users in sas? : sas-grid-administration

0 Answers  


What system options would you use to help debug a macro? : sas-macro

0 Answers  


What is difference between rename and lable in sas?

10 Answers   Satyam,


Mention what is SAS data set?

0 Answers  


If a variable contains letters or special characters, can it be numeric data type?

0 Answers  


name the scheduler for scheduling job and explain the scheduler? : Sas-di

0 Answers  


what is Enterprise Guide?what is the use of it?

2 Answers   CitiGroup, Oracle,


Categories