

What is the different between functions and PROCs that calculate thesame simple descriptive statistics?Ī) Functions can used inside the data step and on the same data set but with proc's you can create a new data sets to output the results. What are some good SAS programming practices for processing very large data sets?Ī) Sort them once, can use firstobs = and obs = , of the variables later labels all that kind of info inside the dataset and you can look at that info using proc contents procedure. Following the data step then you can avoid the usage of the run statement.Ī) SAS is considered self documenting because during the compilation time it creates and stores all the information about the data set like the time and date of the data set creation later No. Identify statements whose placement in the DATA step is critical.ĭoes SAS 'Translate' (compile) or does it 'Interpret'? Explain.Ī) When SAS editor looks at Run it starts compiling the data or proc step, if you have more than one data step or proc step or if you have a proc step. How do you control the number of observations and/or variables read or written?Īpproximately what date is represented by the SAS date value of 730? Why is a STOP statement needed for the POINT= option on a SET statement?Ī) Because POINT= reads only the specified observations, SAS cannot detect an end-of-file condition as it would if the file were being read sequentially. What do the SAS log messages "numeric values have been converted to character" mean? What are the implications?Ī) It implies that automatic conversion took place to make character functions possible.

Where as if we submit VAR A1-A4 instead of VAR A1-A4 or VAR A1-A3, u will see error message in the log. What's the difference between VAR A1 - A4 and VAR A1 - A4?Ī) There is no diff between VAR A1-A4 a VAR A1-A4.


What is the effect of the OPTIONS statement ERRORS=1?Ī) 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 is the one statement to set the criteria of data that can be coded in any step? Under what circumstances would you code a SELECT construct instead of IF statements?Ī: I think Select statement is used when you are using one condition to compare with several conditions like…….
