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

in the flow of data step processing, what is the first action in a typical data step? : Sas programming

0 Answers  


Which date functions advances a date time or date/time value by agiven interval?

3 Answers  


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

2 Answers   CitiGroup, Oracle,


what is chi-square test? have you used that?

1 Answers   Accenture, Quintiles,


What are the analysis datasets created, and what are the new variables created in CLINICAL SAS

1 Answers   Accenture, Sciformix,






what are the different ways of merging two datasets.name atleast 4.

2 Answers  


Name statements that are execution only?

7 Answers  


what is star schema? : Sas-di

0 Answers  


What is the difference between %local and %global?

1 Answers  


I need to find the numeric field which contains blank in between..Ex:123 456...there is blank in between the 123 456..I need to know if there is any SAS function to find a field.. Please suggest...

5 Answers   TCS,


What is the function of output statement in a SAS Program?

0 Answers  


Explain proc univariate?

0 Answers  


Categories