Premium

SAS Base Latest Interview Preparation (Q&A)



Question-: How does SAS find that current step is ended?

Answer: As you know in SAS each program is compiled and executed independently from every other step. As a step is compiled, SAS recognizes the end of the current step when it encounters one of the following
- A DATA or PROC statement, which indicates the beginning of a new step
- A RUN or QUIT statement, which indicates the end of the current step
- RUN statement is mandatory at the end of the last step, otherwise last step would not be executed.



Question-: When you submit the SAS program and you get the error message like “A Quoted String has become too long or that the statement is ambiguous� what does that mean?

Answer: It means you have unbalanced quotation marks in your SAS program which you need to correct and resubmit the program.



Question-: Is that true when SAS program has syntax error, it would be compiled but execution fails?

Answer: No, whenever syntax error happens program would not compile because before compiling the program checks the syntax and if these are not correct program will not compile and give error. Syntax errors occur because program does not follow the SAS Base programming rules correctly.



Question-: If you have used invalid option in the SAS statement SAS program will ignore that?

Answer: No, whenever you have wrong option used with the SAS program then SAS program would identify that wrong option and notifies via error message that you have provided invalid option. In this case we need to recall the SAS program, remove or correct the invalid option and resubmit the program.

Related Questions


Question-: What is the difference between function and procedure?

Question-: What is the difference between sum function and + operator?

Question-: What is the difference between PROC MEANS and PROC SUMMARY?

Question-: When SAS can not convert numerical value from character value automatically?

Question-: What all are the main components of the SAS programming?

Question-: What is PDV?

Question-: Can you please again explain me the difference between function and procedure?

Question-: What is the difference between format and informat?