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 OPTIMIZATION?
What is the use of stop statement?
Given an unsorted data set, how to read the last observation to a new data set?
How do dates work in SAS data?
which date functions advances a date time or date/time value by a given interval? : Sas programming
What is the general format of function in sas? : sas-grid-administration
Tell me more about the parameters in macro? : sas-macro
what are the considerations when picking a SAS/STAT procedure?
What are the default statistics that proc means produce?
how could you generate test data with no input data? : Sas programming
How many data types are there in SAS?
how to do user inputs and command line arguments in sas?
what is treatment emergent events and treatment emregent adverse event
What function CATX syntax does?
Do you need to compute new variables? If so,should you do this before you execute the report-writing procedure?