Question : You have been looking a SAS program written by your team mate. However, he has not done formatting of the code. He has used Proc print , to display data in the output window. Below is the code, which is written by your team mate. Please find the total number of statement in this code.
proc print data=EmployeeInfo label double; var name age salary bonus; where sex='male'; label sex='SEX'; run;
Explanation: In SAS program formatting does not matter when you run it. And each statement is separated by ; . Hence , there are in total 5 statements as below.
4. It is defining a library named spss using Hadoop sas engine
Correct Answer : Get Lastest Questions and Answer : Explanation: Using LIBNAME statement, you can define a SAS library reference as well as which SAS engine can be used to process the files. And always library name come before the engine name. So option 3 is correct.
Question : You are a good SAS programmer, hence whenever you write a program you will follow which of the following A. Whenever you write a DATA or PROC step, you will always start it with the first column B. Whatever statements you write inside the step, you should indent it properly. C. You always write RUN statement as a first column D. You should prefer multiple statement in single line, separated by semicolon E. You always assign a new label to column when output generated
Correct Answer : Get Lastest Questions and Answer : Explanation: There are some good programming practice - Always start DATA and PROC step with the first column - Any statement within the step should be well indented - RUN statement should also start with first column - You should avoid writing multiple statements in single line - It is not necessary to assign new labels to the column