In the following DATA step, what is needed for ‘fraction’ to
print to the log? data _null_; x=1/3; if x=.3333 then put
‘fraction’; run;
Answer / henry
data precise;
x=1/3;
if round(x,0.0001)=.3333 then put 'fraction';
else put 'not fraction';
run;
| Is This Answer Correct ? | 3 Yes | 0 No |
I need help in merging two different datasets. I am merging by date and I want to propagate observations from one dataset to the corresponding dates. One dataset has a unique date for each day of the month, while the other dataset has same date for different patient visits. For example I want to spread an observation on the 31DEC2008 from one dataset to several observations with the same date on a second dataset for all the patients who visited on that date. I have tried to merge the two and the result is not what I wanted. Instead I get a dataset whereby all the dates have missing values where observations from the first datset should have spread.
if you have 365 no of data set and each one having different variable from each other. how will you read by creating macros and create a single data set.
what is option year cuttoff in sas
what is sas olap server? : Sas-di
How we can create SAS USER DEFINED CODE?
What is a macro routine?
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?
What is SAS? is it a software just for use or we can creat something over there?
If you use a symput in a data step, when and where can you use the macro variable? : sas-macro
Describe the function and untility of the most difficult SAS macro that you have written.
6) Explain about below automatic variables a) _N_ b) _ERROR_ c) _CHAR_ d) _NUMERIC_ e) _ALL_ f) FIRST.BY VARIABLE g) LAST.BY VARIABLE h) _NAME_ i) _TYPE_ j) _FREQ_ k) _STAT_ l) _BREAK
how does sas handle missing values in an update? : Sas programming