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 the work of tranwrd function?
How do you control the number of observations and/or variables read or written? Approximately what date is represented by the SAS date value of 730?
Which command is used to save logs in the external file?
What is your favorite all time computer book? Why?
How do you use the do loop if you don’t know how many times you should execute the do loop?
Mention what is PROC in SAS?
Do you need to know if there are any missing values?
what can you learn from the sas log when debugging? : Sas programming
what is sas metadata server? : Sas-di
what is data access? : Sas-di
explain the concepts and capabilities of business object? : Sas-bi
Explain substr function?
If a variable contains only numbers, can it be a character data type?
explain about various caches available in data integrator? : Sas-di
explain the main difference between the nodup and nodupkey options? : Sas-administrator