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 |
Have you ever linked SAS code? If so, describe the link and any required statements used to either process the code or the step itself.
What do you know about sas and what we do? : sas-grid-administration
i have a dataset with 100 obs i want to generate title from 20th obs onwards with total observations. that should contain 100 obs.dont use firstobs and dnt split the data. use dataset block or proc report? how can we genarate;
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;
What are the different types of sas functions?
I have a dataset with variables empid and doj how to calculate retirement age?
diff between nodup rec and ondup key???
Can you execute a macro within a macro? Describe. : sas-macro
wat has been most common programming mistake?
% let A=3+4 what is result
How would you code the criteria to restrict the output to be produced?
There is a field containing a date. It needs to be displayed in the format “ddmonyy” if it’s before 1975,”dd mon ccyy” if it’s after 1985, and as ‘disco years’ if its between 1975 and 1985. How would you accomplish this in data step code? Using only PROC FORMAT.