Question : When you run the below program what will happen (SAS windows environment) data work.prices; infile '/folders/myfolders/hadoopexam/hesample1.dat'; input CODE $ NAME$ FEE1 FEE2; if NAME='SPARK; run;
Correct Answer : Get Lastest Questions and Answer : Explanation: It depends where you run this program. The missing quotation mark in the LABEL statement causes SAS to misinterpret the statements in the program. When you submit the program, SAS is unable to resolve the PROC step, and a PROC PRINT running message appears at the top of the active window. But if you run in SAS studio, then SAS can interpret the quotation mark and program can run successfully without any error.
Question : You are reviewing the SAS code written by a one of the junior programmer in your team. However, there seems to be a syntax error. What happens when you run a program with a Syntax error?
1. Syntax error will be auto corrected by the SAS and program will gracefully completed
2. Log window will tell you the syntax error, however program will finishes successfully
4. In a step where syntax error, SAS will not run that particular step and you can see the error in output window.
5. In a step where syntax error, SAS will not run tell you where the error is.
Correct Answer : Get Lastest Questions and Answer : Explanation: If SAS finds syntax error than SAS will not run that particular step in which syntax ERROR detected. At the same time error message will be given in the log window. Also you can see some explanation about the error.
Question : One of your junior programmer is running SAS program and he is complaining that there is a syntax error in the SAS code, what do you interpret?