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
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 |
what is the one statement to set the criteria of data that can be coded in any step? : Sas programming
what is the difference between DUPKEY and NODUPKEY???
What are common programming errors committed in sas
How to do user inputs and command line arguments in SAS? D&B
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
Approximately what date is represented by SAS date value of 730
how are numeric and character missing values represented internally? : Sas programming
How do you specify the number of iterations and specific condition within a single do loop?
what is option year cuttoff in sas
We want to merge file A and B. File A has variable age, file B provide birthdate. How to merge the data according to age in file B
what do the pad and dim functions do? : Sas programming
In a shcool there are 1000 students. After completion of every test in 6 subjects , each subject teacher submit the marks of every student at different times and loaded in the database commonly. How will you seperate the top two subject marks for each each studet using SAS?