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
Name and describe few sas character functions that are used for data cleaning in brief.
How does the internal authentication work in sas? : sas-grid-administration
What do the PUT and INPUT functions do?
What is the purpose of _character_ and _numeric_?
sas implementing companies in pune implementing clinical projects if anyone knows plz send ans immediately
how the sas basic syntax style described? : Sas-administrator
Describe the ways in which you can create a macro variable?
how many types prompting framework can be broken down to? : Sas-bi
Explain the use of proc gplot? : sas-grid-administration
What commands are used in the case of including or excluding any specific variables in the data set?
Explain the special input delimiters used in sas programming.
Mention the category in which sas informats are placed?
Are you involved in writing the inferential analysis plan? Tables specfications?
Explain the use of proc print and proc contents?
Difference between nodup and nodupkey options?