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 sas metadata repository? : Sas-bi
Which command is used to save logs in the external file?
what is transformation in sas data integration? : Sas-di
Differentiate between ceil and floor functions.
what is a method for assigning first.var and last.var to the by groupvariable on unsorted data? : Sas programming
what do the pad and dim functions do? : Sas programming
What is substr function?
Give some examples where proc report’s defaults are different than proc print’s defaults?
What is the use of divide function?
What does the RUN statement do?
What are the difference between the sas data step and sas procs?
What is auto call macro and how to create a auto call macro? What is the use of it? How to use it in sas with macros? : sas-macro
how to generate the test data in sas without input data? : Sas-administrator
how many types prompting framework can be broken down to? : Sas-bi
Tell me about % include and % eval? : sas-macro