A00-212 · Question #22
The following SAS program is submitted: %macro loop; data one; %do I = 1 %to 3; var&I = &i; % end; run; %mend; %loop After this program executes; the following is written to the SAS log: (LOOP)…
The correct answer is B. MLOGIC. See the full explanation below for the reasoning.
Question
The following SAS program is submitted:
%macro loop; data one; %do I = 1 %to 3; var&I = &i; % end; run; %mend; %loop After this program executes; the following is written to the SAS log:
(LOOP): Beginning execution. (LOOP): %DO loop beginning; index variable I; start value is 1; stop value is 3; by value is 1. (LOOP): %DO loop index variable I is now 2; loop will iterate again. (LOOP): %DO loop index variable I is now 3; loop will iterate again. (LOOP): %DO loop index variable I is now 4; loop will not iterate again. (LOOP): Ending execution. Which SAS system option displays the notes in the SAS log?
Options
- AMACRO
- BMLOGIC
- CMPRINT
- DSYMBOLGEN
How the community answered
(65 responses)- A3% (2)
- B78% (51)
- C12% (8)
- D6% (4)
Community Discussion
No community discussion yet for this question.