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 |
How to get any kind of data in SAS? Is it possible to take data from notepad in SAS?
When looking for data contained in a character string of 150 bytes, which function is the best to locate that data: scan, index, or indexc?
"What is the difference between proc sort nodup and proc sort nodupkey?"
What are the difference between sas functions and procedures?
What is the role of sas grid administrator? : sas-grid-administration
How to import multiple xls files into sas. Out of those files, how to get different values from a single variable and how to find number of rows per value type? We can do this using group by for one xls file with proc sql. Was wondering how I can achieve this for multiple files at the same time. Any ideas?
I am having a stored process.it needs to route my report to both hthml and Xls.By default SP routes to html.I used the PRINTTO to route the html to Xls.BUt it createsthe file not but no content was written to file(0KB)?how can i do it?
For clinical entire study how many tables will create approx?
Describe a time when you were really stuck on a problem and how you solved it?
if reading an external file to produce an external file, what is the shortcut to write that record without coding every single variable on the record
How do you test for missing values?
What do you feel about hardcoding?