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 substr function?
what is ae onset date n what is RDS
what is data access? : Sas-di
how does sas handle missing values in functions? : Sas programming
why is sas considered self-documenting? : Sas programming
Can you execute macro within another macro? If so, how would sas know where the current macro ended and the new one began? : sas-macro
Name types of category in which SAS Informats are placed?
How would you identify a macro variable?
what is sas database server? : Sas-di
How to create list output for cross-tabulations in proc freq?
what is the difference between: x=a+b+c+d; and x=sum (of a, b, c ,d);? : Sas programming
For what purpose would you use the RETAIN statement?
explain the difference between proc means and proc summary?
What is the difference between one to one merge and match merge? Give an example.
Give e an example of..