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 to merge the data using merge statement and proc format? Is the result is same ?

2 Answers  


How to get top scorer student from a class-table having different sections A,B, C & D? Each section having same number of students.

2 Answers  


Mention how to limit decimal places for the variable using proc means?

0 Answers  


how does sas handle missing values in a merge? : Sas programming

0 Answers  


What is SAS? is it a software just for use or we can creat something over there?

5 Answers   Cognizant,






Which is the best training Institute for SAS Business Intelligence course?

6 Answers  


Explain why double trailing @@ is used in input statement?

0 Answers  


describe the interaction table in sas di? : Sas-di

0 Answers  


is there any difference between proc summary and proc means?

3 Answers  


how to know the attributes of first five datasets in a library

2 Answers  


explain what is data set in sas? : Sas-administrator

0 Answers  


i have a null dataset with 10 variables; i want to print only name of the varibales in log window and also output window.how can we do this one?

6 Answers   GSK,


Categories