A00-212 Exam QuestionsBrowse all questions from this exam

A00-212 Exam - Question 20


This question will ask you to provide a segment of missing code.

Given the SAS data set SASUSER.ORDERS:

The following SAS program is submitted:

Which statement completes the program completely so that it will produce a report with the total number of orders for California?

Show Answer
Correct Answer: B

To generate a report displaying the total number of orders for California in the given year, the correct statement to complete the code would be 'Num = California'. This line assigns the value of the 'California' variable, which is incremented each time a record with 'state' equal to 'CA' is processed, to the macro variable 'num'. The footnote in the PROC PRINT step uses this macro variable to display the total number of orders from California.

Discussion

1 comment
Sign in to comment
numanigerioOption: A
Apr 2, 2019

CALL SYMPUT Routine....