A00-212 Exam QuestionsBrowse all questions from this exam

A00-212 Exam - Question 15


The following SAS program is submitted:

What is written to the SAS log?

Show Answer
Correct Answer: AB

The macro variable 'Mv' is initially set to 'bicycles' outside the macro definition. The macro PRODUCT redefines 'Mv' to 'clothes' within its scope, but this does not affect the 'Mv' outside the macro. The macro is called with the parameter 'Mv=tents', but this is local to the macro and does not affect the outer 'Mv'. Therefore, the outer 'Mv', which is still 'bicycles', is used in the %put statement.

Discussion

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

A. Mv is bicycle