nerdexam
SAS_Institute

A00-212 · Question #109

The following SAS program is submitted: %macro execute; <insert statement here> proc print data = sasuser.houses; run; %end; %mend; Which of the following completes the above program so that it…

The correct answer is A. %if &sysday = Tuesday %then %do. See the full explanation below for the reasoning.

Question

The following SAS program is submitted:

%macro execute; <insert statement here> proc print data = sasuser.houses; run; %end; %mend; Which of the following completes the above program so that it executes on Tuesday?

Options

  • A%if &sysday = Tuesday %then %do;
  • B%if &sysday = 'Tuesday' %then %do;
  • C%if "&sysday" = Tuesday %then %do;
  • D%if '&sysday' = 'Tuesday' %then %do;

How the community answered

(55 responses)
  • A
    80% (44)
  • B
    5% (3)
  • C
    11% (6)
  • D
    4% (2)

Community Discussion

No community discussion yet for this question.

Full A00-212 Practice