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 |
Which is the Best SAS training Institute in Delhi NCR for SAS certification preparation
Name statements that are recognized at compile time only?
what are the methods that you would employ to fine tune your SQL extract process using SAS/Access or Proc SQL?
Are the preferred term counts are always equal to Body system counts? If so, Why are they equal if not why they are not equal?
Describe 5 ways to do a “table lookup” in SAS?
what is the difference between proc report and proc format?
what are validation tools that are used in sas? : Sas-administrator
In PROC PRINT, can you print only variables that begin with the letter “A”?
name some data transformation used in sas di? : Sas-di
How would you include common or reuse code to be processed along with your statements?
data data1; input dt account; format dt date9.; cards; 1745 1230 1756 1120 1788 1130 1767 1240 ; data data2; input startdt enddt total; format startdt date9. enddt date9.; cards; 1657 1834 12300 1557 1758 16800 1789 1789 12300 1788 1345 12383 1899 1899 13250 ; proc sql; create table data3 as select * from data1 as x left join data2 as y on x.dt>=y.startdt and x.dt<=y.enddt; quit; Here, we are getting cartision product. But,I want left join report consisting of this program. It should not get duplicate values. you can modify the program also.
what are scrubing procedures in SAS?