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

What type of tables you are using in YOUR reporting..???

2 Answers   GSK GlaxoSmithKline,


sas implimented companies in hyderabad

11 Answers   CTS, HSBC,


if a program has some 1000 or more line and how to know whether the syntax of the particular code is correct without checking it manually

4 Answers   Accenture,


What does a PROC TRANSPOSE do?

8 Answers   Accenture,


What is the difference between match merge and one to one merge?

0 Answers  


What is program data vector (pdv) and what are its functions?

0 Answers  


what is the use of catalog?

1 Answers   Cognizant,


what are all the reports you generated in your recent project?

0 Answers   Accenture, Quintiles,


What are the data types in sas?

0 Answers  


Name validation tools used in SAS

0 Answers  


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

0 Answers  


how can you code the confidence intervals?

6 Answers   Cytel, IIT, Ranbaxy,


Categories