BookmarkSubscribeRSS Feed
drnayeem
Calcite | Level 5

Hey All! 

 

Had a quick query in some questions about completing the Syntex there is ambiguity like in the practice test the question was 

 

Complete the code below to reference a data set named data_in that is contained in the library cert. You must use the macro variable defined in the program in place of the data set name.

 

%let dsref= cert.data_in;

libname cert "C:\workshop\cert";

 

data work.data_out;

   set Answer

_____

;

run;

The correct answer is "&dsref" within quotes but it's marked as a wrong answer the the correct answer is &dsref without quotes .

 

So my question is do we include the quote and parenthesis in the answer or we don't ?

1 REPLY 1
Mark2010
SAS Employee

The question is correct as it is .

If quotes were included in the answer, then the substitution of the macro variable into the SAS code would make the set statement look like:

set "cert.data_in";

which would cause a error in the log. Please try it for yourself and see. 

Welcome to the Certification Community

 

This is a knowledge-sharing community for SAS Certified Professionals and anyone who wants to learn more about becoming SAS Certified. Ask questions and get answers fast. Share with others who are interested in certification and who are studying for certifications.To get the most from your community experience, use these getting-started resources:

Community Do's and Don'ts
How to add SAS syntax to your post
How to get fast, helpful answers

 

Why Get SAS Certified.jpg

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 813 views
  • 0 likes
  • 2 in conversation