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 |
How do you add a number to a macro variable?
Do you need to know if there are any missing values?
There are 200 observations in a dataset, i want to pull out the observation no's 100, 150,180,190 by using Proc SQL? How you can get it?
Code a PROC SORT on a data set containing State, District and County as the primary variables, along with several numeric variables.
What do the sas log messages “numeric values have been converted to character” mean? What are the implications?
Describe what are the different levels of administrative users in sas? : sas-grid-administration
What system options would you use to help debug a macro? : sas-macro
What is difference between rename and lable in sas?
Mention what is SAS data set?
If a variable contains letters or special characters, can it be numeric data type?
name the scheduler for scheduling job and explain the scheduler? : Sas-di
what is Enterprise Guide?what is the use of it?