SAS Interview Questions: General(Part-2)
Under what circumstances would you code a SELECT construct instead of IF statements? A: I think Select statement is used when you are using one condition to compare with several conditions like……. Data exam; Set exam; select (pass); when Physics gt 60; when math gt 100; when English eq 50; otherwise fail; run ; What is the one statement to set the criteria of data that can be coded in any step? A) Options statement. What is the effect of the OPTIONS statement ERRORS=1? A) The –ERROR- variable ha a value of 1 if there is an error in the data for that observation and 0 if it is not. What's the difference between VAR A1 - A4 and VAR A1 -- A4? A) Refer the following link: http://studysas.blogspot.com/2009/07/even-you-can-use-hash-and-double-dash.html What do the SAS log messages "numeric values have been converted to character" mean? What are the implications? A) It implies that automatic conversion took place to make character functions ...