227k views
1 vote
Which statement substitutes the value of the macro variable Year in the footnote?

%let Year=2018;

a. footnote 'year Sales';
b. footnote '&year Sales';
c. footnote "%year Sales";
d. footnote "&year Sales";

User Randie
by
8.1k points

1 Answer

1 vote

Final answer:

The correct way to substitute the value of the macro variable 'Year' set to 2018 in SAS is d. footnote "&year Sales"; which will display '2018 Sales' in the footnote.

Step-by-step explanation:

The student is asking about how to substitute the value of a macro variable in SAS. In SAS, to substitute the value of a macro variable within text, you use an ampersand (&) followed by the macro variable name.

The correct answer is d. footnote "&year Sales"; This line will substitute the macro variable Year with its value, in this case 2018, when it is executed in SAS, resulting in the output '2018 Sales' being displayed in the footnote.

User Juckobee
by
8.6k points