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;



In the following DATA step, what is needed for ‘fraction’ to print to the log? data _null_; x=1..

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

Post New Answer

More SAS Interview Questions

I need to find the numeric field which contains blank in between..Ex:123 456...there is blank in between the 123 456..I need to know if there is any SAS function to find a field.. Please suggest...

5 Answers   TCS,


how can u join the two tables without using proc sql Joins and nested queries ?

6 Answers   IBM,


If you?re not wanting any SAS output from a data step, how would you code the data statement to prevent SAS from producing a set?

1 Answers  


What data sets do you need to produce the report?

2 Answers   Novartis,


What areas of SAS are you most interested in?

0 Answers   Quintiles,






In the flow of DATA step processing, what is the first action in a typical DATA Step?

6 Answers   Accenture,


Name statements that function at both compile and execution time.

7 Answers   Accenture,


How to test the debugging in sas?

0 Answers  


What is the function of Stop statement in a SAS Program?

0 Answers  


What is the pound sign used for in the data_null_ ?

1 Answers  


The Lion King is hosting an animal conference. All the animals in the world attend except one. Which animal does not attend?

6 Answers   Oracle,


describe the interaction table in sas di? : Sas-di

0 Answers  


Categories