Question : Which of the following program you see as a syntax error 1. data work.prices; infile '/folders/myfolders/hadoopexam/hesample1.dat'; input CODE $ NAME$ FEE1 FEE2; if NAME='SPARK; run;
4. data prices; infile '/folders/myfolders/hadoopexam/hesample1.dat'; input CODE $ NAME$ FEE1 FEE2; if NAME='SPARK; run;
Correct Answer : Get Lastest Questions and Answer : Explanation: We can clearly see that the data statement is wrongly spelled instead of data it is dta.
Question : What action should you take once you submitted the below SAS program proc print data=courses; where course='SPARK; run;
1. After submitting to complete the program add another quotation mark on the log window, so program will be successfully completed
2. Recall the program and add another quotation mark and re-submit the program.
4. Recall the program, and remove existing quotation and re-submit the program.
Correct Answer : Get Lastest Questions and Answer : Explanation: In the given program you can see that there is an unbalanced quotation mark, and SAS is unable to detect the end of statement. Hence, already submitted program needs to cancel already submitted program and add the quotation mark and re-submit the program.
Question : You have submitted program in SAS window and active window shows that DATA Step running for long time, what does that mean?
1. There is a spelling error with the SAS keyword
2. You have not provided RUN statement at the end of Data step
Correct Answer : Get Lastest Questions and Answer : Explanation: There are two reason when you see Data step running message on active window in SAS window environment - When you missed the RUN statement after the DATA step - When you have unbalanced quotation mark.