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
Answer Posted / 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 View All Answers
i want for interview question & answer plz it need immediate send t my mail raviprakashmot@gmal.cm
How can sas program be validated?
What are the applications primarily used by business analyst? : Sas-bi
what is hierarchy flattening? : Sas-di
Differentiate between sas functions and sas procedures.
How do you control the number of observations and/or variables read or written? Approximately what date is represented by the SAS date value of 730?
What is a method for assigning first.VAR and last.VAR to the BY group variable on unsorted data?
Explain what is SAS informats?
What are the five ways to do a table lookup in sas? : sas-grid-administration
what is metadata? : Sas-bi
What are the data types that sas contain?
if you were told to create many records from one record, show how you would do this using array and with proc transpose? : Sas programming
How do you specify the number of iterations and specific condition within a single do loop?
how do you want missing values handled? : Sas programming
What are the data types in sas?