Premium

SAS Base Latest Interview Preparation (Q&A)



Question-: Wrong data values are considered Syntax errors?

Answer: No, wrong data values are data error and any program statement which does not follow the SAS programming rule are considered Syntax error like invalid options, variable names, missing or invalid punctuations, missing or misspelled keywords.



Question-: If there are 3 errors in your data steps, then what would be value of automatic variable _ERROR_?

Answer: It would be 1. It does not matter how many times error occurs; it is set to 1. And if there is no error then automatic variable _ERROR_ would have 0 value.



Question-: What happens if SAS can not determine the syntax error?

Answer: When SAS can not determine the syntax error, it would compile the code but not execute it.



Question-: What happens when SAS variable type is not defined correctly?

Answer: When SAS variable is not defined correctly then SAS would try to automatically convert that variable type. If it can not do that SAS continues processing and produces the output with missing values.

Related Questions


Question-: Which procedure we can use to check the descriptor information?

Question-: New Dataset is created after compilation or execution?

Question-: As soon as execution phase completed two automatic variables _N_ and _ERROR_ also stored with the output Datasets?

Question-: The format to the variable is applied once the variables are added in the PDV during the execution phase?

Question-: Which all variables are not reset in the PDV in each iteration during the execution phase?

Question-: How FREQ procedure can be used to determine the errors in the Data?

Question-: How does procedure means helps in finding the error in the data?

Question-: What all is created during the compilation phased?