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
What is a put statement?
why a stop statement is needed for the point= option on a set statement?
how can you put a "trace" in your program? : Sas programming
Explain translate function?
What are the applications primarily used by business analyst? : Sas-bi
Explain the main difference between the sas procedures and functions? : Sas-administrator
Give some ways by which you can define the variables to produce the summary report (using proc report)?
hi all, I need the SAS DI DUMP(A00 260) for attending the certification. if any one have, pls provide it.Please Email to vrpotluri@hotmail.com. Thanks - Ramana
What is the length assigned to the target variable by the scan function?
How might you use MOD and INT on numeric to mimic SUBSTR on character Strings?
How do you specify the number of iterations and specific condition within a single do loop?
What are the functions which are used for character handling functions?
What are the functions used for character handling?
What would you change about your job?
explain the function of substr in sas? : Sas-administrator